diff options
| author | Dana Jansens <danakj@orodu.net> | 2007-05-02 00:35:22 +0000 |
|---|---|---|
| committer | Dana Jansens <danakj@orodu.net> | 2007-05-02 00:35:22 +0000 |
| commit | 66d6e1120ec4e66433ecec673258856def164070 (patch) | |
| tree | c8737ad9ab52c9883b572c6ced2d2dbecefe2e6f /openbox/focus.c | |
| parent | a223fa20579fec9ba731e426b0a28ce983862b6c (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/focus.c')
| -rw-r--r-- | openbox/focus.c | 9 |
1 files changed, 2 insertions, 7 deletions
diff --git a/openbox/focus.c b/openbox/focus.c index 4c663c3f..c1d51477 100644 --- a/openbox/focus.c +++ b/openbox/focus.c @@ -304,13 +304,8 @@ static void popup_cycle(ObClient *c, gboolean show) a = screen_physical_area_monitor(0); icon_popup_position(focus_cycle_popup, CenterGravity, a->x + a->width / 2, a->y + a->height / 2); -/* icon_popup_size(focus_cycle_popup, a->height/2, a->height/16); - icon_popup_show(focus_cycle_popup, c->title, - client_icon(c, a->height/16, a->height/16)); -*/ - /* XXX the size and the font extents need to be related on some level - */ - icon_popup_size(focus_cycle_popup, POPUP_WIDTH, POPUP_HEIGHT); + icon_popup_width(focus_cycle_popup, MAX(a->width/3, POPUP_WIDTH)); + icon_popup_height(focus_cycle_popup, POPUP_HEIGHT); /* use the transient's parent's title/icon */ while (p->transient_for && p->transient_for != OB_TRAN_GROUP) |
