Nicolas Bonifas wrote:
> Hello,
> 
>>> --- client.c.old        2009-09-12 19:24:31.000000000 +0200
>>> +++ client.c    2009-09-12 19:28:37.000000000 +0200
>>
>> hmm.
>>
>>> -               wWindowConfigure(wwin, nx, ny, nwidth, nheight);
>>> +               if (nwidth != wwin->old_geometry.width)
>>> +                    wwin->flags.maximized &= ~(MAX_HORIZONTAL |
>>> MAX_MAXIMUS);
>>> +                if (nheight != wwin->old_geometry.height)
>>> +                    wwin->flags.maximized &= ~(MAX_VERTICAL |
>>> MAX_LEFTHALF | MAX_RIGHTHALF | MAX_MAXIMUS);
>>> +                wWindowConfigure(wwin, nx, ny, nwidth, nheight);
>>>                wwin->old_geometry.x = nx;
>>>                wwin->old_geometry.y = ny;
>>>                wwin->old_geometry.width = nwidth;
>>
>> I still didn't test it, but shouldn't this check be done inside
>> wMaximizeWindow() in src/actions.c?
> 
> No, this check is not to be done when a window is maximized, but when it
> is resized: if a window is resized, the maximized flag is reset.

Ok, I understand now.
Thanks!


-- 
To unsubscribe, send mail to [email protected].

Reply via email to