Floating window with respected size hint (xmonad 0.10)

Hi all, I tried it with this minimal xmonad config: main = xmonad $ defaultConfig {manageHook = composeAll [className =? "xclock" --> doFloat]} Is there something missing? Greetings, Daniel

On 16 October 2012 22:13, Daniel Trstenjak
Hi all,
I tried it with this minimal xmonad config: main = xmonad $ defaultConfig {manageHook = composeAll [className =? "xclock" --> doFloat]}
Is there something missing?
What did you do? What happened? What did you expect to happen?
Greetings, Daniel
_______________________________________________ xmonad mailing list xmonad@haskell.org http://www.haskell.org/mailman/listinfo/xmonad
-- Ivan Lazar Miljenovic Ivan.Miljenovic@gmail.com http://IvanMiljenovic.wordpress.com

On Tue, Oct 16, 2012 at 10:30:19PM +1100, Ivan Lazar Miljenovic wrote:
What did you do? What happened? What did you expect to happen?
Starting xclock from a shell, I expected getting a floating xclock window with its default size, but the window I got was just put in the current active layout.

On Tue, Oct 16, 2012 at 02:17:14PM +0200, Daniel Trstenjak wrote:
Starting xclock from a shell, I expected getting a floating xclock window with its default size, but the window I got was just put in the current active layout.
Well, I used the wrong string, xprop for xclock returns: ~> xprop|grep WM_CLASS WM_CLASS(STRING) = "xclock", "XClock" If I'm using "XClock" instead of "xclock", then it works as expected. Greetings, Daniel

On 16 October 2012 09:53, Daniel Trstenjak
On Tue, Oct 16, 2012 at 02:17:14PM +0200, Daniel Trstenjak wrote:
Starting xclock from a shell, I expected getting a floating xclock window with its default size, but the window I got was just put in the current active layout.
Well, I used the wrong string, xprop for xclock returns:
~> xprop|grep WM_CLASS WM_CLASS(STRING) = "xclock", "XClock"
If I'm using "XClock" instead of "xclock", then it works as expected.
I use the script in the XMonad FAQ[1] and most times it works without issues :). [1]: http://www.haskell.org/haskellwiki/Xmonad/Frequently_asked_questions#A_handy... Regards, -- Pablo Olmos de Aguilera Corradini - @PaBLoX http://www.glatelier.org/ http://about.me/pablox/ http://www.linkedin.com/in/pablooda/ Linux User: #456971 - http://counter.li.org/

On Tue, Oct 16, 2012 at 7:13 AM, Daniel Trstenjak < daniel.trstenjak@gmail.com> wrote:
main = xmonad $ defaultConfig {manageHook = composeAll [className =? "xclock" --> doFloat]}
Class names almost always start with an uppercase letter; this is "always" for Xt-based stuff like xclock. so your rule doesn't match. Use "Xclock" instead of "xclock". (For historical reasons, WM_CLASS is not a list of classes, it is a list of [appName, className]. Always use the second string reported by "xprop WM_CLASS". Or see the window properties script in xmonad-contrib's scripts directory.) -- brandon s allbery kf8nh sine nomine associates allbery.b@gmail.com ballbery@sinenomine.net unix/linux, openafs, kerberos, infrastructure http://sinenomine.net

Quoting Daniel Trstenjak
I tried it with this minimal xmonad config: main = xmonad $ defaultConfig {manageHook = composeAll [className =? "xclock" --> doFloat]}
At least here, xclock has WM_CLASS = "xclock", "XClock" which corresponds to appName =? "xclock" or className =? "XClock". ~d
participants (5)
-
Brandon Allbery
-
Daniel Trstenjak
-
Ivan Lazar Miljenovic
-
Pablo Olmos de Aguilera C.
-
wagnerdm@seas.upenn.edu