On Tue, Jul 01, 2008 at 09:17:15AM +0200, Frederic Jaeckel wrote:
> Hi all,
> 
> I'm trying to implement a toggling of a vertical or horizontal
> maximisation and I expected resize() to take maxw or maxh as granted
> absolut possible width or height. If I call resize like below it
> resizes the window to one line, which is not what I wanted to do.
> 
> Could somebody explain me what I'm doing wrong? ;-)
> 
> togglemaxvert(const Arg *arg) {
>   sel->isfloating = !sel-> isfloating || sel->isfixed;
>   if(sel->isfloating)
>     resize(sel, sel->x, sel->y, sel->w, sel->maxh, True);
>   arrange();
> }

Avoid using resizehints if you change the height to a height
which has been advertised as valid max height by the client:

        resize(sel, sel->x, sel->y, sel->w, sel->maxh, False);

Regards,
-- 
 Anselm R. Garbe >< http://www.suckless.org/ >< GPG key: 0D73F361

Reply via email to