diff options
| author | Dana Jansens <danakj@orodu.net> | 2008-02-03 00:51:55 -0500 |
|---|---|---|
| committer | Dana Jansens <danakj@orodu.net> | 2008-02-03 00:51:55 -0500 |
| commit | 892107d3ba483fe9356d66c5b62496d7fa332020 (patch) | |
| tree | f37c6e2d8412967d5709de3211b35de230b8b4b9 /openbox/focus_cycle_popup.c | |
| parent | ad3bf0cea4d471ccb821227f1df485a8c639fca0 (diff) | |
center the text vertically in list alttab box mode
Diffstat (limited to 'openbox/focus_cycle_popup.c')
| -rw-r--r-- | openbox/focus_cycle_popup.c | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/openbox/focus_cycle_popup.c b/openbox/focus_cycle_popup.c index d5b707ed..c862933c 100644 --- a/openbox/focus_cycle_popup.c +++ b/openbox/focus_cycle_popup.c @@ -339,8 +339,11 @@ static void popup_render(ObFocusCyclePopup *p, const ObClient *c, w = MAX(w, POPUP_WIDTH); /* min width */ /* get the text height */ - texth = MAX(RrMinHeight(p->a_text), RrMinHeight(p->a_hilite_text)) + - TEXT_BORDER * 2; + texth = RrMinHeight(p->a_hilite_text); + if (mode == OB_FOCUS_CYCLE_POPUP_MODE_LIST) + texth = MAX(MAX(texth, RrMinHeight(p->a_text)), ICON_SIZE); + else + texth += TEXT_BORDER * 2; if (mode == OB_FOCUS_CYCLE_POPUP_MODE_ICONS) { /* how many icons will fit in that row? make the width fit that */ |
