BurntSushi / wingo

A fully-featured window manager written in Go.
Do What The F*ck You Want To Public License
1k stars 90 forks source link

floating layout --- place windows in non-overlapping manner if possible #33

Open BurntSushi opened 12 years ago

BurntSushi commented 12 years ago

The real question to answer here is; how does it fit in with Wingo's layouts? Namely, if we want to support both random window placement and non-overlapping placement, does that consist of two different floating layouts? Or a hard-coded option?

I think initially, I had intended for this sort of thing to manifest as two separate floating layouts. But now that I think about it, this seems like overkill and completely unintuitive. In fact, it's possible that we never want to have more than one floating layout, but I am not sure of this yet.

I think the proper way to implement this feature is to have a hard coded option, and absolve the floating layout of initial placement. That is, one can have either random placement enabled or non-overlapping placement enabled.