]> Dogcows Code - chaz/openbox/blobdiff - openbox/screen.c
small change to the render API. RrMinsize became RrMinSize. added RrMinWidth and...
[chaz/openbox] / openbox / screen.c
index 0773caad9e210b43e042e2cb4345c63486c5397f..a302828baf1a7a293d87dc995e6efce2cbb687a5 100644 (file)
@@ -598,11 +598,8 @@ void screen_desktop_popup(guint d, gboolean show)
         a = screen_physical_area_monitor(0);
         pager_popup_position(desktop_cycle_popup, CenterGravity,
                              a->x + a->width / 2, a->y + a->height / 2);
-        /* XXX the size and the font extents need to be related on some level
-         */
-        pager_popup_size(desktop_cycle_popup, POPUP_WIDTH, POPUP_HEIGHT);
-
-        pager_popup_set_text_align(desktop_cycle_popup, RR_JUSTIFY_CENTER);
+        pager_popup_width(desktop_cycle_popup, MAX(a->width/3, POPUP_WIDTH));
+        pager_popup_height(desktop_cycle_popup, POPUP_HEIGHT);
 
         pager_popup_show(desktop_cycle_popup, screen_desktop_names[d], d);
     }
This page took 0.0214 seconds and 4 git commands to generate.