mirror of
https://github.com/VincentWei/MiniGUI.git
synced 2026-09-26 12:27:58 +08:00
handle window style if failed to allocate znode for fixed ones
This commit is contained in:
@@ -1624,6 +1624,30 @@ static int dskAddNewMainWindow (PMAINWIN pWin, const COMPOSITINGINFO* ct_info)
|
||||
if (pWin->idx_znode <= 0)
|
||||
return -1;
|
||||
|
||||
/* Since 4.2.0: handle window style if failed to allocate znode for fixed ones */
|
||||
if (pWin->dwExStyle & WS_EX_WINTYPE_MASK) {
|
||||
ZORDERNODE* nodes = GET_ZORDERNODE(__mg_zorder_info);
|
||||
|
||||
pWin->dwExStyle &= ~WS_EX_WINTYPE_MASK;
|
||||
switch (nodes [pWin->idx_znode].flags & ZOF_TYPE_MASK) {
|
||||
case ZOF_TYPE_SCREENLOCK:
|
||||
pWin->dwExStyle |= WS_EX_WINTYPE_SCREENLOCK;
|
||||
break;
|
||||
case ZOF_TYPE_DOCKER:
|
||||
pWin->dwExStyle |= WS_EX_WINTYPE_DOCKER;
|
||||
break;
|
||||
case ZOF_TYPE_LAUNCHER:
|
||||
pWin->dwExStyle |= WS_EX_WINTYPE_LAUNCHER;
|
||||
break;
|
||||
case ZOF_TYPE_TOPMOST:
|
||||
pWin->dwExStyle |= WS_EX_TOPMOST;
|
||||
break;
|
||||
case ZOF_TYPE_NORMAL:
|
||||
default:
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
||||
/* Handle main window hosting. */
|
||||
if (pWin->pHosting)
|
||||
dskAddNewHostedMainWindow (pWin->pHosting, pWin);
|
||||
|
||||
Reference in New Issue
Block a user