]> Dogcows Code - chaz/openbox/commitdiff
reset the pager popup's size after reconfigure
authorDana Jansens <danakj@orodu.net>
Sun, 13 May 2007 17:28:52 +0000 (17:28 +0000)
committerDana Jansens <danakj@orodu.net>
Sun, 13 May 2007 17:28:52 +0000 (17:28 +0000)
openbox/screen.c

index 34935f47d6ddc245729e17a35de56aa12f404e35..1cbb2a5ec2ecceb765442b593dab7ad14d24b428 100644 (file)
@@ -312,8 +312,13 @@ void screen_startup(gboolean reconfig)
     desktop_cycle_popup = pager_popup_new(FALSE);
     pager_popup_height(desktop_cycle_popup, POPUP_HEIGHT);
 
-    if (reconfig)
+    if (reconfig) {
+        /* update the pager popup's width */
+        pager_popup_text_width_to_strings(desktop_cycle_popup,
+                                          screen_desktop_names,
+                                          screen_num_desktops);
         return;
+    }
 
     /* get the initial size */
     screen_resize();
This page took 0.023364 seconds and 4 git commands to generate.