mirror of
https://github.com/gryf/wmaker.git
synced 2025-12-20 21:08:08 +01:00
Fix stacking level bug when creating a drawer in a keep-on-top dock
Now moving the drawer's window to the WMDockLevel if it's on top (i.e., not lowered) (Minor bug, as it didn't persist after a WM restart)
This commit is contained in:
committed by
Carlos R. Mafra
parent
36cd5e6641
commit
bf6bc79d37
@@ -4339,6 +4339,10 @@ static int addADrawer(WScreen *scr)
|
||||
|
||||
drawer = wDockCreate(scr, WM_DRAWER, NULL);
|
||||
drawer->lowered = scr->dock->lowered;
|
||||
if (!drawer->lowered)
|
||||
ChangeStackingLevel(drawer->icon_array[0]->icon->core, WMDockLevel);
|
||||
else
|
||||
ChangeStackingLevel(drawer->icon_array[0]->icon->core, WMNormalLevel);
|
||||
drawer->auto_raise_lower = scr->dock->auto_raise_lower;
|
||||
drawer->x_pos = dock->x_pos;
|
||||
drawer->y_pos = dock->y_pos + ICON_SIZE * y;
|
||||
|
||||
Reference in New Issue
Block a user