
Hi, I use this manageHook: mh = ( ask >>= doF . sink ) It works well except for a single application ('netgen', which uses a widget set that I can't identify). When it opens a dialog window, everything starts to flash (like if black and white lights were alternating fast). My wild guess is that when my manageHook changes a widget parameter (size?) the widget reacts changing it back, and I get an infinite loop. Do you think I could improve my manageHook to solve that? Thanks for your comments, Maurício

* On Thursday, May 07 2009, Maurício wrote:
Hi,
I use this manageHook:
mh = ( ask >>= doF . sink )
...
Do you think I could improve my manageHook to solve that?
There are a few options: 1. don't sink such windows Find a X11 property to identify it with xprop, then only sink such windows that don't match that predicate: > mh = fmap not (className =? "netgen") --> (ask >>= doF . sink) 2. use a layout that respects hints If the window presents hints as to its desired size, using a hinted layout (or LayoutHints) might prevent such behavior with the original hook too. 3. fix the app That application should accept alternate window sizes (ICCM? violation), without behaving so strangely. Adam
participants (2)
-
Adam Vogt
-
Maurício