[xmonad] darcs patch: Add ShowWName a layout modifier to show the workspace...

Andrea Rossato mailing_list at istitutocolli.org
Fri Dec 28 13:36:06 EST 2007


this is a follow up of Don's user survey: David Benbennick suggested
to have the possibility so see the name of the new workspace when you
switch. David Roundy suggested a way to achieve it. And I, with his
help, implemented it.

Still with some problems I seem not to be able to solve. The fist one
is the old thread related problem: since I need to create a window and
destroy it after 1 second (the interval can be configured), I need to
stop the main thread execution for a second. Most of the time xmonad
is blocked in a foreign call (XNextEvent) in the 'forever' loop. This
means I cannot destroy the window in a forked thread (which would be
blocked too): so I have to block the main thread.

But I have to block the main thread in doLayout (actually redoLayout,
since we are talking about a layout modifier), which means we block
*before* returning the windows and rectangles list... which means,
the window with the workspace name is displayed *before* displaying
the workspace itself!

This is the reason why I use xmobar and DynamcLog to know the
workspace I'm in, and this is the reason I did not push this patch.

Perhaps I'm missing something really stupid (David?), but I'm not so

What do you think?


Fri Dec 28 19:16:04 CET 2007  Andrea Rossato <andrea.rossato at unibz.it>
  * Add  ShowWName a layout modifier to show the workspace name when switching
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: text/x-darcs-patch
Size: 10581 bytes
Desc: A darcs patch for your repository!
Url : http://www.haskell.org/pipermail/xmonad/attachments/20071228/8cc11ab4/attachment.bin

More information about the xmonad mailing list