
Hello XMonad I'm experiencing a sporadic problem with XMonad. Sometimes when I start a session, I am unable to move focus away from the first window that I open. I can launch further windows, but they do not get focus. I can send the focused window to a different workspace, in which case focus switches to another window (but I can't then switch focus away from that window). When I try to switch focus there is some flickering -- I think the red border disappears and then reappears again as though focus very briefly switches where I'm trying to send it and then goes back again. I haven't been able to see any pattern in when this does and doesn't happen. When it happens it starts immediately at the beginning of the session. Restarting XMonad doesn't fix the problem; nor does logging out and in again (I guess this is a big clue that there's something pretty fundamentally wrong). On restarting my box I seem to get a 50/50 chance that it will happen. I'm running Ubuntu 10.04, using XMonad from the standard package repo. I'm conscious that this is a rather unhelpful bug report. Can you give me any clues what I can do to get some more diagnostics for the problem when I experience it? Thanks -Ben

On Tue, Feb 08, 2011 at 09:05:52PM +0000, Ben Butler-Cole wrote:
Hello XMonad
I'm experiencing a sporadic problem with XMonad.
Sometimes when I start a session, I am unable to move focus away from the first window that I open. I can launch further windows, but they do not get focus. I can send the focused window to a different workspace, in which case focus switches to another window (but I can't then switch focus away from that window). When I try to switch focus there is some flickering -- I think the red border disappears and then reappears again as though focus very briefly switches where I'm trying to send it and then goes back again.
I haven't been able to see any pattern in when this does and doesn't happen. When it happens it starts immediately at the beginning of the session. Restarting XMonad doesn't fix the problem; nor does logging out and in again (I guess this is a big clue that there's something pretty fundamentally wrong). On restarting my box I seem to get a 50/50 chance that it will happen.
I'm running Ubuntu 10.04, using XMonad from the standard package repo.
I'm conscious that this is a rather unhelpful bug report. Can you give me any clues what I can do to get some more diagnostics for the problem when I experience it?
As just a first guess, it sounds like perhaps a poor interaction between XMonad.Actions.Warp and something else -- are you using any pointer-warping in your config? You could also try turning off focusFollowsMouse and see if that helps. -Brent

I asked (edited):
I am unable to move focus away from the first window that I open. I can launch further windows, but they do not get focus. I can send the focused window to a different workspace, in which case focus switches to another window
When I try to switch focus there is some flickering -- I think the red border disappears and then reappears again as though focus very briefly switches where I'm trying to send it and then goes back again.
I haven't been able to see any pattern in when this does and doesn't happen.
I'm running Ubuntu 10.04, using XMonad from the standard package repo.
Brent Yorgey replied:
As just a first guess, it sounds like perhaps a poor interaction between XMonad.Actions.Warp and something else -- are you using any pointer-warping in your config? You could also try turning off focusFollowsMouse and see if that helps.
I'm not using any pointer warping. I'm afraid I haven't tried turning off focusFollowsMouse yet -- I'll try that now. I have discovered a few more things about this. * It sometimes starts happening in the middle of a session. * I can make the problem go away by using the mouse to switch focus. * I can sometimes make the problem go away by pushing the offending window to another workspace and then going and getting it back again. Is there any way to get XMonad to spit out any logging? -Ben

Ben Butler-Cole
I asked (edited):
I am unable to move focus away from the first window that I open. I can launch further windows, but they do not get focus. I can send the focused window to a different workspace, in which case focus switches to another window
When I try to switch focus there is some flickering -- I think the red border disappears and then reappears again as though focus very briefly switches where I'm trying to send it and then goes back again.
I haven't been able to see any pattern in when this does and doesn't happen.
I'm running Ubuntu 10.04, using XMonad from the standard package repo.
Brent Yorgey replied:
As just a first guess, it sounds like perhaps a poor interaction between XMonad.Actions.Warp and something else -- are you using any pointer-warping in your config? You could also try turning off focusFollowsMouse and see if that helps.
I'm not using any pointer warping. I'm afraid I haven't tried turning off focusFollowsMouse yet -- I'll try that now.
I have discovered a few more things about this. * It sometimes starts happening in the middle of a session. * I can make the problem go away by using the mouse to switch focus. * I can sometimes make the problem go away by pushing the offending window to another workspace and then going and getting it back again.
Is there any way to get XMonad to spit out any logging?
For what it's worth, I can reliably reproduce this by starting Pidgin on an empty workspace. Pidgin opens two windows (the buddy list and an authentication dialog -- which is unfortunately tiled, btw.), and I can't switch away from the buddy list by keyboard. Using the mouse helps every time. Debian squeeze XMonad(-contrib) 0.9.1, my config is: import XMonad import XMonad.Util.EZConfig import XMonad.Hooks.ManageDocks import XMonad.Layout.NoBorders import XMonad.Hooks.DynamicLog import XMonad.Util.Run (spawnPipe,hPutStrLn) import XMonad.Hooks.UrgencyHook import Data.List (isPrefixOf) import Control.Monad (liftM) main = do xmproc <- spawnPipe "xmobar /home/wferi/.xmonad/xmobar.hs" xmonad $ withUrgencyHook NoUrgencyHook $ defaultConfig { terminal = "urxvt", manageHook = composeAll [manageHook defaultConfig, manageDocks, title =? "pinentry" --> doFloat, (liftM (isPrefixOf "Ardour") className <&&> liftM not (appName =? "ardour_editor")) --> doFloat, liftM (isPrefixOf "JACK") title --> doFloat], layoutHook = smartBorders $ avoidStruts $ layoutHook defaultConfig, logHook = dynamicLogWithPP $ sjanssenPP { ppOutput = hPutStrLn xmproc, ppUrgent = xmobarColor "red" "" } } `additionalKeysP` [ ("M-S-l", spawn "sleep 1; xset dpms force off; exec xtrlock") ] I'd be happy to help debugging this, given some guidance. -- Regards, Feri.

I have not seen this problem since turning off focusFollowsMouse a week ago. One other (possibly relevant) item for tracking this down: I have unclutter running. My current xmonad.hs is below. -Ben --- --- --- myManageHook = composeAll [ className =? "Gimp" --> doFloat , className =? "Vncviewer" --> doFloat , className =? "Skype" --> doFloat , className =? "Pidgin" --> doFloat ] <+> manageDocks <+> scratchpadManageHook (W.RationalRect 0.25 0.1 0.5 0.8) <+> manageHook defaultConfig myConfig xmproc = defaultConfig { manageHook = myManageHook , layoutHook = avoidStruts $ layoutHook defaultConfig , logHook = dynamicLogWithPP $ xmobarPP { ppOutput = hPutStrLn xmproc , ppTitle = xmobarColor "green" "" . shorten 50 } , modMask = modm , terminal = "urxvtcd" , startupHook = spawn "xmonadrc" , focusFollowsMouse = False } `additionalKeys` [ ((modm, xK_s), scratchpadSpawnActionTerminal "urxvtcd") ] where modm = mod4Mask main = do xmproc <- spawnPipe "xmobar" xmonad (myConfig xmproc)

Ben Butler-Cole
I have not seen this problem since turning off focusFollowsMouse a week ago.
One other (possibly relevant) item for tracking this down: I have unclutter running.
That will be it! I'm running unclutter as well. And if I keep the mouse moving while starting Pidgin, I can perfectly well switch focus between its windows. But after leaving the mouse idle for a while, the focus sticks as soon as unclutter hides the cursor. -- Cheers, Feri.

I suppose that would be this:
http://www.haskell.org/pipermail/xmonad/2007-August/001938.html
On 22 February 2011 10:57, Ferenc Wagner
Ben Butler-Cole
writes: I have not seen this problem since turning off focusFollowsMouse a week ago.
One other (possibly relevant) item for tracking this down: I have unclutter running.
That will be it! I'm running unclutter as well. And if I keep the mouse moving while starting Pidgin, I can perfectly well switch focus between its windows. But after leaving the mouse idle for a while, the focus sticks as soon as unclutter hides the cursor. -- Cheers, Feri.

Ben Butler-Cole
On 22 February 2011 10:57, Ferenc Wagner
wrote: Ben Butler-Cole
writes: I have not seen this problem since turning off focusFollowsMouse a week ago.
One other (possibly relevant) item for tracking this down: I have unclutter running.
That will be it! I'm running unclutter as well. And if I keep the mouse moving while starting Pidgin, I can perfectly well switch focus between its windows. But after leaving the mouse idle for a while, the focus sticks as soon as unclutter hides the cursor.
I suppose that would be this: http://www.haskell.org/pipermail/xmonad/2007-August/001938.html
Maybe, but not directly, as I purposedly kept the cursor well off the window borders during the above experiment. -- Cheers, Feri.

If you're using unclutter, have you seen this FAQ?
http://www.haskell.org/haskellwiki/Xmonad/Frequently_asked_questions#XMonad_...
~d
Quoting Ferenc Wagner
Ben Butler-Cole
writes: On 22 February 2011 10:57, Ferenc Wagner
wrote: Ben Butler-Cole
writes: I have not seen this problem since turning off focusFollowsMouse a week ago.
One other (possibly relevant) item for tracking this down: I have unclutter running.
That will be it! I'm running unclutter as well. And if I keep the mouse moving while starting Pidgin, I can perfectly well switch focus between its windows. But after leaving the mouse idle for a while, the focus sticks as soon as unclutter hides the cursor.
I suppose that would be this: http://www.haskell.org/pipermail/xmonad/2007-August/001938.html
Maybe, but not directly, as I purposedly kept the cursor well off the window borders during the above experiment. -- Cheers, Feri.
_______________________________________________ xmonad mailing list xmonad@haskell.org http://www.haskell.org/mailman/listinfo/xmonad
participants (4)
-
Ben Butler-Cole
-
Brent Yorgey
-
Ferenc Wagner
-
wagnerdm@seas.upenn.edu