floating problems - vlc and dialogs

Hi, in my xmonad.hs I have: -- manage hook - when new clients appear floatAll = composeAll . map (\s -> className =? s --> doFloat) myManageHook = floatAll ["Gimp", "Wine", "vlc", "MPlayer", "VLC (XVideo output)"] <+> manageDocks <+> (isFullscreen --> doFullFloat) MPlayer and gimp are floated perfectly. VLC is not. Why not? Also, is there a way to generally float dialogs? Thanks! Nathan

On 31 May 2010 09:30, Nathan Huesken
in my xmonad.hs I have: -- manage hook - when new clients appear floatAll = composeAll . map (\s -> className =? s --> doFloat) myManageHook = floatAll ["Gimp", "Wine", "vlc", "MPlayer", "VLC (XVideo output)"] <+> manageDocks <+> (isFullscreen --> doFullFloat)
MPlayer and gimp are floated perfectly. VLC is not. Why not?
Several possible reasons: 1) That isn't the correct classname for VLC 2) That isn't the classname that VLC has when it starts (and then changes its classname once the GUI is created, etc.) Possible solution: try using the resource (the first value from "xprop | grep WM_CLASS") instead of the classname.
Also, is there a way to generally float dialogs?
http://hackage.haskell.org/packages/archive/xmonad-contrib/0.9.1/doc/html/XM... isDialog --> doFloat -- Ivan Lazar Miljenovic Ivan.Miljenovic@gmail.com IvanMiljenovic.wordpress.com

On Mon, May 31, 2010 at 10:03:43AM +1000, Ivan Miljenovic wrote:
2) That isn't the classname that VLC has when it starts (and then changes its classname once the GUI is created, etc.)
Which is not allowed to happen, since the WM_CLASS is only set whilst the window is in the Withdrawn state. To change that afterwards, is in violation of the ICCCM. If VLC is really doing this, file a bug upstream. -- Thomas Adam -- "It was the cruelest game I've ever played and it's played inside my head." -- "Hush The Warmth", Gorky's Zygotic Mynci.

On Mon, May 31 2010, Nathan Huesken wrote:
Hi,
in my xmonad.hs I have: -- manage hook - when new clients appear floatAll = composeAll . map (\s -> className =? s --> doFloat) myManageHook = floatAll ["Gimp", "Wine", "vlc", "MPlayer", "VLC (XVideo output)"] <+> manageDocks <+> (isFullscreen --> doFullFloat)
Using "Vlc" instead of "vlc" works for me. HTH. jao
participants (4)
-
Ivan Miljenovic
-
Jose A. Ortega Ruiz
-
Nathan Huesken
-
Thomas Adam