diff options
| author | Dana Jansens <danakj@orodu.net> | 2008-02-03 00:16:09 -0500 |
|---|---|---|
| committer | Dana Jansens <danakj@orodu.net> | 2008-02-03 00:28:03 -0500 |
| commit | 88d0c56be0eab0860987c7026a07a4b9c6e8f386 (patch) | |
| tree | 7d5c35bfcaa282666829881538a73d4a0c3ce659 | |
| parent | 76464a604ee2999b00b806be25722f7fcac1cd9c (diff) | |
fix some uses of ICON_SIZE where it should be HILITE_SIZE now, from the old icon-mode focus cycle popup
| -rw-r--r-- | openbox/focus_cycle_popup.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/openbox/focus_cycle_popup.c b/openbox/focus_cycle_popup.c index 9f3fa3e8..19d3d0b8 100644 --- a/openbox/focus_cycle_popup.c +++ b/openbox/focus_cycle_popup.c @@ -343,8 +343,8 @@ static void popup_render(ObFocusCyclePopup *p, const ObClient *c, if (mode == OB_FOCUS_CYCLE_POPUP_MODE_ICONS) { /* how many icons will fit in that row? make the width fit that */ w -= l + r; - icons_per_row = (w + ICON_SIZE - 1) / ICON_SIZE; - w = icons_per_row * ICON_SIZE + l + r; + icons_per_row = (w + HILITE_SIZE - 1) / HILITE_SIZE; + w = icons_per_row * HILITE_SIZE + l + r; /* how many rows do we need? */ icon_rows = (p->n_targets-1) / icons_per_row + 1; @@ -372,7 +372,7 @@ static void popup_render(ObFocusCyclePopup *p, const ObClient *c, /* center the icons if there is less than one row */ if (icon_rows == 1) - icons_center_x = (w - p->n_targets * ICON_SIZE) / 2; + icons_center_x = (w - p->n_targets * HILITE_SIZE) / 2; else icons_center_x = 0; |
