[xmonad] proposal: add extra screen parameter to runLayout

David Roundy droundy at darcs.net
Wed Mar 26 10:51:52 EDT 2008


On Wed, Mar 26, 2008 at 10:37:48AM -0400, Brent Yorgey wrote:
> So, this morning I began hacking up gaps as a LayoutModifier in contrib.  I
> didn't get too far before I realized that in order to retain the same
> behavior as the current built-in gaps (*per screen* gap configuration), a
> layout needs to be able to know on which *screen* it is called!  This is the
> point at which I had a profound sense of deja vu, since of course we had the
> same issue with PerWorkspace, only with *screen* replaced by *workspace*.
> gah!
> 
> I think, however, this could be useful information for other potential
> layouts as well -- I don't have any particular examples in mind, but having
> layouts that can behave differently depending on which screen they're on
> sounds like it could be useful for more than just per-screen gaps.  So, I
> propose to add an extra screen parameter to runLayout and friends (which of
> course requires a bunch of trivial updates in contrib, unfortunately).  I'm
> happy to do all the work, but I wanted to throw this idea out there first
> and see what people think, whether anyone has any better ideas, and so on.

Why not just check the rectangle against the screen rectangle? That sounds
simpler and safer to me.
-- 
David Roundy
Department of Physics
Oregon State University


More information about the xmonad mailing list