search for: compwindowstatemaximizedhorzmask

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

2007 Apr 05
1
Ignoring increment hint when maximized horz/vert
...9,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_IGNORE_HINTS_WHEN_MAXIMIZED].value.b || + !(w->state & CompWindowStateMaximizedVertMask)) + yinc = MAX (yinc, hints->height_inc); } /* clamp width and height t...