summaryrefslogtreecommitdiff
path: root/openbox/screen.c
diff options
context:
space:
mode:
authorDana Jansens <danakj@orodu.net>2007-05-02 00:35:22 +0000
committerDana Jansens <danakj@orodu.net>2007-05-02 00:35:22 +0000
commit66d6e1120ec4e66433ecec673258856def164070 (patch)
treec8737ad9ab52c9883b572c6ced2d2dbecefe2e6f /openbox/screen.c
parenta223fa20579fec9ba731e426b0a28ce983862b6c (diff)
small change to the render API. RrMinsize became RrMinSize. added RrMinWidth and RrMinHeight.
make focus/desktop popups wider based on the screen size with the old size as a minimum. left-align the desktop dialog.. i think better dialogs would be nice. and to make them hide or something when you switch desktops while switching windows etc.
Diffstat (limited to 'openbox/screen.c')
-rw-r--r--openbox/screen.c7
1 files changed, 2 insertions, 5 deletions
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);
}