startupHook setWMName and ewmhDesktops

Hi all, In xmonad 0.9 both setWMName and ewmhDesktops sets startupHook. The problem is that I don't know how to use them together. I've tried like it was with logHook in 0.8, but it doesn't work. , startupHook = ewmhDesktopsStartup >> setWMName "LG3D" Thanks, Henrique G. Abreu ps: Also there's no config example about this in whole xmonad documentation. Not in emwmDesktops, SetWMName or "extending xmonad hooks" (linked everywhere for detailed instructions). faq has a todo on this: http://haskell.org/haskellwiki/Xmonad/Frequently_asked_questions#Using_SetWM...

On Fri, Oct 30, 2009 at 12:19:18AM -0200, Henrique G. Abreu wrote:
Hi all,
In xmonad 0.9 both setWMName and ewmhDesktops sets startupHook. The problem is that I don't know how to use them together. I've tried like it was with logHook in 0.8, but it doesn't work. , startupHook = ewmhDesktopsStartup >> setWMName "LG3D"
Thanks, Henrique G. Abreu
That is the startup hook one should use. Please describe what you mean by "doesn't work". Spencer Janssen

Sorry for not being clear at the first time.
If I use startupHook like this:
, startupHook = setWMName "LG3D"
Java apps work normally, but if I set it like proposed:
, startupHook = ewmhDesktopsStartup >> setWMName "LG3D"
and attempt to run java apps, I get the "grey blobs" instead of app window,
just as if not using setWMName workaround.
Henrique G. Abreu
On Fri, Oct 30, 2009 at 00:59, Spencer Janssen
On Fri, Oct 30, 2009 at 12:19:18AM -0200, Henrique G. Abreu wrote:
Hi all,
In xmonad 0.9 both setWMName and ewmhDesktops sets startupHook. The problem is that I don't know how to use them together. I've tried like it was with logHook in 0.8, but it doesn't work. , startupHook = ewmhDesktopsStartup >> setWMName "LG3D"
Thanks, Henrique G. Abreu
That is the startup hook one should use. Please describe what you mean by "doesn't work".
Spencer Janssen _______________________________________________ xmonad mailing list xmonad@haskell.org http://www.haskell.org/mailman/listinfo/xmonad

Excerpts from Henrique G. Abreu's message of Thu Oct 29 21:23:13 -0600 2009:
Sorry for not being clear at the first time.
If I use startupHook like this: , startupHook = setWMName "LG3D" Java apps work normally, but if I set it like proposed: , startupHook = ewmhDesktopsStartup >> setWMName "LG3D" and attempt to run java apps, I get the "grey blobs" instead of app window, just as if not using setWMName workaround.
Henrique G. Abreu
Henrique, I'm sorry you're having trouble with this. What you are showing here is the intended way, and works for me with netbeans, however, that's really the only java app I run which I can make grey blobs without setWMName. i.e. , startupHook = ewmhDesktopsStartup >> setWMName "LG3D" should work fine. Please include your xmonad.hs somewhere on pastebin or attached, and which apps are giving the grey blobs. With netbeans, not using setWMName causes blobbing. What works is either of the methods shown on the faq, i.e. the >> one above, or using the new 'ewmh' modifier like: main = do -- stuff xmonad $ ewmh defaultConfig { modMask = mod4Mask -- handleEventHook and logHook without Ewmh hooks , startupHook = setWMName "LG3D" } Yes, it will be good to add such examples to EwmhDesktops and SetWMName documentation. thanks, -- wmw
participants (3)
-
Henrique G. Abreu
-
Spencer Janssen
-
Wirt Wolff