[Xmonad] darcs patch: add decorations infrastructure
stefanor at cox.net
Sat Jun 9 15:46:59 EDT 2007
On Sat, Jun 09, 2007 at 12:40:21PM -0700, Stefan O'Rear wrote:
> On Sat, Jun 09, 2007 at 12:27:00PM -0700, David Roundy wrote:
> > Hi all,
> > Here's some infrastructure to allow layouts to define window decorations
> > such as tabs or title bars. I'm mostly sending it in to get comments.
> > I soon hope to have a crude tabbed layout using this.
> Cool! In the spirit of comments, I think I see a simpler and more
> general way to accomplish this. Expect a counterpatch shortly!
> Why restrict the core to *decorations*? This can be generalized:
> 1. Have a transientRestore :: [X ()] hook in the state, which is used by
> the decoration manager (a XMonadContrib module) to remove decorations.
> 2. Have a eventHandlers :: M.Map WindowId (Event -> X ()) which
> specifies what to do when other windows get events. This gives
> Xmonad the toolkit-like facilities to implement drawing, clicking,
> etc decorations.
Actually this isn't needed. It can be handled just fine using a *real*
More information about the Xmonad