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

From: Nibble <nibble_AT_develsec.org>
Date: Wed, 19 Mar 2008 14:09:02 +0100

> Well there is one ugly thing to note about the shrinkmaster and
> growmaster proposal I did some days ago, which I heavily dislike
> and that's why I also don't propose to keep them as an official
> feature.
>
> 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.
>
> That's the reason why I propose to get over the idea of
> shrink/growmaster.
>
> Kind regards,

Yes, it is true. Finally I have replaced shrinkmaster and growmaster
geometries with a geometry (really 2, with and without bar) which has a fixed
mwfact and it seems to fit pretty well my needs.

Kind regards,
Nibble
Received on Wed Mar 19 2008 - 14:09:24 UTC

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