Desktop integration, problem with screen focus

From what I understand xmonad creates virtual root windows on each screen to detect if focus should change. My guess is that plasma-desktop covers
Hi, I use xmonad with KDE integration[1]. After some changes it works surprisingly well, but there's one minor annoyance: the screen focus only changes when clicking on windows (or when the mouse cursor enters windows if focusFollowsMouse is set to True), not when clicking on desktops. The cause seems to be plasma-desktop, KDE's desktop, since everything works as expected if I quit plasma-desktop. The question is, is it possible to fix this somehow? these root windows. In that case, a possible solution could be to put windows matching _NET_WM_WINDOW_TYPE = _NET_WM_WINDOW_TYPE_DESKTOP below the root windows. But how? I'm still new to Haskell and xmonad, so a thorough explanation would be much appreciated. If you want to try to reproduce this, you can use this pretty standard configuration: http://mogger.ath.cx/xmonad.hs (I have just added kde4Config), and then run plasma-desktop. It doesn't matter if xmonad or plasma-desktop starts first. Thanks, Hans --- [1] http://xmonad.org/xmonad-docs/xmonad-contrib/XMonad-Config-Kde.html

On Wed, Nov 14, 2012 at 4:39 AM, Hans Chen
From what I understand xmonad creates virtual root windows on each screen to detect if focus should
xmonad neither uses nor cares about virtual root windows; they're the sort of thing desktop managers use. Where did you get this idea? Instead it is rather likely that xmonad is lazy about the notion of screen focus; in many ways, a workspace with no windows "doesn't exist" even if it's on a screen, because in practice a workspace is defined by its windows. In particular, much of the concept of "workspace" is created by the layoutHook, which usually doesn't do anything if there are no windows. -- brandon s allbery kf8nh sine nomine associates allbery.b@gmail.com ballbery@sinenomine.net unix/linux, openafs, kerberos, infrastructure http://sinenomine.net

On Wed, Nov 14, 2012 at 8:28 PM, Brandon Allbery
On Wed, Nov 14, 2012 at 4:39 AM, Hans Chen
wrote: From what I understand xmonad creates virtual root windows on each screen to detect if focus should
xmonad neither uses nor cares about virtual root windows; they're the sort of thing desktop managers use. Where did you get this idea?
http://code.google.com/p/xmonad/issues/detail?id=40 Note that it was fixed in xmonad 0.9. I haven't looked at the actual source though, I just assumed that the solution was similar to the one described by the Issue. Instead it is rather likely that xmonad is lazy about the notion of screen
focus; in many ways, a workspace with no windows "doesn't exist" even if it's on a screen, because in practice a workspace is defined by its windows. In particular, much of the concept of "workspace" is created by the layoutHook, which usually doesn't do anything if there are no windows.
Well, as mentioned, it works fine without plasma-desktop running. It's no biggie since I mostly use the keyboard, but it would be nice to fix for the few occasions when I use the mouse. Hans
participants (2)
-
Brandon Allbery
-
Hans Chen