search for: width_inc

Displaying 1 result from an estimated 1 matches for "width_inc".

2007 Apr 05
1
Ignoring increment hint when maximized horz/vert
...isn't maximized (but it wouldn't allow resize at all if aspect is constrained-- should we?). What do you folks think? --- src/window.c +++ src/window.c @@ -4059,8 +4059,13 @@ constrainNewWindowSize (CompWindow *w, if (flags & PResizeInc) { - xinc = MAX (xinc, hints->width_inc); - yinc = MAX (yinc, hints->height_inc); + if (!d->opt[COMP_DISPLAY_OPTION_IGNORE_HINTS_WHEN_MAXIMIZED].value.b || + !(w->state & CompWindowStateMaximizedHorzMask)) + xinc = MAX (xinc, hints->width_inc); + + if (!d->opt[COMP_DISPLAY_OPTION_I...