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:
committed by
Carlos R. Mafra
parent
40231016f9
commit
36cd5e6641
11
src/screen.c
11
src/screen.c
@@ -833,8 +833,17 @@ void wScreenRestoreState(WScreen * scr)
|
|||||||
w_global.clip.icon = wClipRestoreState(scr, state);
|
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);
|
wDrawersRestoreState(scr);
|
||||||
|
}
|
||||||
|
|
||||||
wWorkspaceRestoreState(scr);
|
wWorkspaceRestoreState(scr);
|
||||||
wScreenUpdateUsableArea(scr);
|
wScreenUpdateUsableArea(scr);
|
||||||
|
|||||||
Reference in New Issue
Block a user