all repos — openbox @ 6ff520d02ad3091c7e32a3cfc11fe8d3cb9b042f

openbox fork - make it a bit more like ryudo

always set the multipliers just dont allow 0
Dana Jansens danakj@orodu.net
commit

6ff520d02ad3091c7e32a3cfc11fe8d3cb9b042f

parent

9c32f34b3766de01c51bc5d00c17d68804ab2603

1 files changed, 6 insertions(+), 4 deletions(-)

jump to
M openbox/popup.copenbox/popup.c

@@ -326,8 +326,9 @@ }

void icon_popup_icon_size_multiplier(ObIconPopup *self, guint wm, guint hm) { - if (wm != 0) self->popup->iconwm = wm; - if (hm != 0) self->popup->iconhm = hm; + /* cap them at 1 */ + self->popup->iconwm = MAX(1, wm); + self->popup->iconhm = MAX(1, hm); } static void pager_popup_draw_icon(gint px, gint py, gint w, gint h,

@@ -503,6 +504,7 @@ }

void pager_popup_icon_size_multiplier(ObPagerPopup *self, guint wm, guint hm) { - if (wm != 0) self->popup->iconwm = wm; - if (hm != 0) self->popup->iconhm = hm; + /* cap them at 1 */ + self->popup->iconwm = MAX(1, wm); + self->popup->iconhm = MAX(1, hm); }