[xmonad] Re: Issue 291 in xmonad: Layout.Tabbed has drawing problems when used with Layout.MultiToggle

codesite-noreply at google.com codesite-noreply at google.com
Sun Dec 20 15:21:12 EST 2009


Updates:
	Labels: Type-Defect Component-Contrib

Comment #1 on issue 291 by vogt.adam: Layout.Tabbed has drawing problems  
when used with Layout.MultiToggle
http://code.google.com/p/xmonad/issues/detail?id=291

Can you still reproduce this if you include this patch:

Sat Dec 19 19:47:33 EST 2009  Tomas Janousek <tomi at nomi.cz>
   * Fix MultiToggle crashes with decorated layouts

   The problem was that certain layouts keep their "world" state in their  
value,
   which was thrown away and forgotten after ReleaseResources during toggle.

   In particular, decorated layouts store some X11 handles in them and
   allocate/deallocate it as appropriate. If any modification to their state  
is
   ignored, they may try to deallocate already deallocated memory, which  
results
   in a crash somewhere inside Xlib.

   This patch makes Transformers reversible so that nothing is ever ignored.  
As a
   side effect, layout transformers now do receive messages and messages for  
the
   base layout do not need the undo/reapply cycle -- we just pass messages  
to the
   current transformed layout and unapply the transformer when needed.
   (This, however, doesn't mean that the base layout is not asked to release
   resources on a transformer change -- we still need the transformer to  
release
   its resources and there's no way to do this without asking the base  
layout as
   well.)

--
You received this message because you are listed in the owner
or CC fields of this issue, or because you starred this issue.
You may adjust your issue notification preferences at:
http://code.google.com/hosting/settings


More information about the xmonad mailing list