On Sun, Oct 21, 2007 at 08:52:56AM +0200, Sander van Dijk wrote: > On 10/20/07, Mark Taylor <[EMAIL PROTECTED]> 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
