Re: [dwm] toggling maximum height

From: Anselm R. Garbe <arg_AT_suckless.org>
Date: Tue, 1 Jul 2008 16:04:13 +0200

On Tue, Jul 01, 2008 at 02:45:45PM +0200, Frederic Jaeckel wrote:
> Thanks Anselm, this works.
>
> Below the patch for those who want to toggle maximisation vertical
> and horizontal against 5.0.1.

Depending on what you expect from toggleexpand{vert,horiz} you might
want to preserve the original geometry somehow. You might need
to extend Client for this.

Also, you might only want to expand into one direction:

        resize(sel, sel->x, sel->y, sel->w, wy + wh - sel->y, False);

resp.

        resize(sel, sel->x, sel->y, wx + ww - sel->x, sel->h, False);

Regards,

-- 
 Anselm R. Garbe >< http://www.suckless.org/ >< GPG key: 0D73F361
Received on Tue Jul 01 2008 - 16:04:13 UTC

This archive was generated by hypermail 2.2.0 : Sun Jul 13 2008 - 15:52:32 UTC