1
0
mirror of https://github.com/gryf/wmaker.git synced 2025-12-20 12:58:08 +01:00

Correctly initialize the drawer tile when the dock is on the left side

This commit is contained in:
Daniel Déchelotte
2013-10-07 23:49:25 +02:00
committed by Carlos R. Mafra
parent 40231016f9
commit 36cd5e6641

View File

@@ -833,8 +833,17 @@ void wScreenRestoreState(WScreen * scr)
w_global.clip.icon = wClipRestoreState(scr, state);
}
if (!wPreferences.flags.nodrawer)
if (!wPreferences.flags.nodrawer) {
if (!scr->dock->on_right_side) {
/* Drawer tile was created early in wScreenInit() -> wReadDefaults(). At
* that time, scr->dock was NULL and the tile was created as if we were on
* the right side. If we aren't, redo it now. */
assert(scr->drawer_tile);
RReleaseImage(scr->drawer_tile);
scr->drawer_tile = wDrawerMakeTile(scr, scr->icon_tile);
}
wDrawersRestoreState(scr);
}
wWorkspaceRestoreState(scr);
wScreenUpdateUsableArea(scr);