From: Daniel Déchelotte <[email protected]>

---
 src/screen.c |   11 ++++++++++-
 1 file changed, 10 insertions(+), 1 deletion(-)

diff --git a/src/screen.c b/src/screen.c
index 98a372f..4e6e6ca 100644
--- a/src/screen.c
+++ b/src/screen.c
@@ -834,8 +834,17 @@ void wScreenRestoreState(WScreen * scr)
                wks_info.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);
-- 
1.7.10.4


-- 
To unsubscribe, send mail to [email protected].

Reply via email to