X-Git-Url: https://git.dogcows.com/gitweb?a=blobdiff_plain;f=openbox%2Fscreen.c;h=a302828baf1a7a293d87dc995e6efce2cbb687a5;hb=66d6e1120ec4e66433ecec673258856def164070;hp=0773caad9e210b43e042e2cb4345c63486c5397f;hpb=a223fa20579fec9ba731e426b0a28ce983862b6c;p=chaz%2Fopenbox diff --git a/openbox/screen.c b/openbox/screen.c index 0773caad..a302828b 100644 --- a/openbox/screen.c +++ b/openbox/screen.c @@ -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); }