Re: [dwm] found a nice way to do the setgeom stuff

From: Szabolcs Nagy <nszabolcs_AT_gmail.com>
Date: Wed, 19 Mar 2008 11:04:35 +0100

On 3/19/08, Anselm R. Garbe <arg_AT_suckless.org> wrote:
> The problem is:
>
> void
> configurenotify(XEvent *e) {
> XConfigureEvent *ev = &e->xconfigure;
>
> if(ev->window == root && (ev->width != sw || ev->height != sh)) {
> sw = ev->width;
> sh = ev->height;
> setgeom(NULL);
> }
> }
>
> This event handler is invoked whenever X changes the screen
> resolution dynamically. So for the case of
> shrinkmaster/growmaster being the current geometry this means,
> that the master area will shrink/grow whenever the
> screen resolution is changed dynamically.

what's wrong with

void growm(const char *arg) {
    mw += 20;
}

?
Received on Wed Mar 19 2008 - 11:04:37 UTC

This archive was generated by hypermail 2.2.0 : Sun Jul 13 2008 - 15:27:20 UTC