Re: [dwm] new floating windows

From: Sander van Dijk <a.h.vandijk_AT_gmail.com>
Date: Sat, 25 Aug 2007 08:58:24 +0200

On 8/24/07, y i y u s <yiyu.jgl_AT_gmail.com> wrote:
> hey arg,
> would it be too much to add the line:
> c->isfloating = isfloating();
> before applyrules(c); in the manage function in client.c?
> now, there is no way to not resize a new window when you toggle to
> tile layout if you haven't defined it in rules. this way i can toggle
> to float mode, open a new window and come back to tiled mode and my
> new window remains float and it is not resized. I think this way it is
> more predictable.

I beg to differ. This would make all windows opened in tiled mode
floating when switching to floating mode, but all windows opened in
floating mode would stay floating when switching back to tiled. Quite
inconsistent. That's not how global mode switching is supposed to
work: it should apply to all windows that do not have an individual
override set.
It may be a good idea to allow (un)setting this individual override
also in floating mode (it currently only works in non-floating modes),
because that allows the user to set it for individual windows _before_
switching back to tiled mode.
The default however should be exacly the way it is now: new windows
are managed (= behave they way the global mode dictates) regardless of
the mode they first appear in, unless the Rules specify otherwise.

Greetings, Sander.
Received on Sat Aug 25 2007 - 08:58:26 UTC

This archive was generated by hypermail 2.2.0 : Sun Jul 13 2008 - 14:51:12 UTC