summaryrefslogtreecommitdiff
path: root/openbox/focus_cycle_popup.c
diff options
context:
space:
mode:
authorDana Jansens <danakj@orodu.net>2008-02-07 09:10:01 -0500
committerDana Jansens <danakj@orodu.net>2008-02-07 09:10:01 -0500
commitde85e4f1d96c911c7c9dc7c2a9b514b13b028aec (patch)
treee8c57dec64088a33daede89c3aeb5fbe7844d5b5 /openbox/focus_cycle_popup.c
parentd81339c9cf6592fc86dc05428ee6e70ac573afe5 (diff)
put stuff in the right place in alttab list mode when there is only 1 window in it
Diffstat (limited to 'openbox/focus_cycle_popup.c')
-rw-r--r--openbox/focus_cycle_popup.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/openbox/focus_cycle_popup.c b/openbox/focus_cycle_popup.c
index 5925feb3..ceab3ca1 100644
--- a/openbox/focus_cycle_popup.c
+++ b/openbox/focus_cycle_popup.c
@@ -455,7 +455,7 @@ static void popup_render(ObFocusCyclePopup *p, const ObClient *c)
+ ob_rr_theme->down_arrow_mask->height + OUTSIDE_BORDER;
/* center the icons if there is less than one row */
- if (icon_rows == 1)
+ if (p->mode == OB_FOCUS_CYCLE_POPUP_MODE_ICONS && icon_rows == 1)
icons_center_x = (w - p->n_targets * HILITE_SIZE) / 2;
else
icons_center_x = 0;