Re: [dwm] RESIZEHINTS broken?

From: Anselm R. Garbe <arg_AT_suckless.org>
Date: Tue, 23 Oct 2007 16:45:08 +0200

On Sun, Oct 21, 2007 at 08:52:56AM +0200, Sander van Dijk wrote:
> On 10/20/07, Mark Taylor <skymt0_AT_gmail.com> wrote:
> > I like the RESIZEHINTS behavior with MPlayer, though. It's handy to have
> > a video window that keeps the correct aspect ratio in tiling mode.
>
> That's true. I guess it's basically like this: sizehints that don't
> force the window to be larger than the space that dwm allocates for it
> are ok, sizehints that do aren't. Maybe we should handle the
> minimum/maximum size stuff in floating mode only.

I think the following might be a good solution for 4.6 and
later:

- Removing the RESIZEHINTS at all - this enforces my st
development as well. The new algorithm prevents the gaps quite
well.

- Respect sizehints at all if they fit into the tile space
provided and don't get smaller than the usual constraints (bh,
5% of screen width), otherwise fallback to ignore the sizehints.

- If a contraint is violated before the tiling happens (e.g. too
many stacked windows), we fallback as usual (use whole stack
area for each window) and apply the previous behavior.

This seems to contain all benefits.

Regards,

-- 
 Anselm R. Garbe >< http://www.suckless.org/ >< GPG key: 0D73F361
Received on Tue Oct 23 2007 - 16:45:08 UTC

This archive was generated by hypermail 2.2.0 : Sun Jul 13 2008 - 15:01:41 UTC