1
0
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:
Daniel Déchelotte
2013-10-07 23:49:26 +02:00
committed by Carlos R. Mafra
parent 36cd5e6641
commit bf6bc79d37

View File

@@ -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;