center the text vertically in list alttab box mode
This commit is contained in:
parent
ad3bf0cea4
commit
892107d3ba
1 changed files with 5 additions and 2 deletions
|
@ -339,8 +339,11 @@ static void popup_render(ObFocusCyclePopup *p, const ObClient *c,
|
||||||
w = MAX(w, POPUP_WIDTH); /* min width */
|
w = MAX(w, POPUP_WIDTH); /* min width */
|
||||||
|
|
||||||
/* get the text height */
|
/* get the text height */
|
||||||
texth = MAX(RrMinHeight(p->a_text), RrMinHeight(p->a_hilite_text)) +
|
texth = RrMinHeight(p->a_hilite_text);
|
||||||
TEXT_BORDER * 2;
|
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) {
|
if (mode == OB_FOCUS_CYCLE_POPUP_MODE_ICONS) {
|
||||||
/* how many icons will fit in that row? make the width fit that */
|
/* how many icons will fit in that row? make the width fit that */
|
||||||
|
|
Loading…
Reference in a new issue