Mercurial > dotfiles
diff .xmonad/xmonad.hs @ 266:93a8f55a4e30
xmonad: add takeTopFocus logHook
This is required to make IntelliJ (and supposedly all other Swing
applications) properly notice that they've recieved the
focus. According to [0], the problem is that "xmonad does not follow
ICCCM and ignores WM_TAKE_FOCUS protocol", but the patches on that
ticket haven't yet been accepted, so the function was added to
xmonad-contrib as a workaround until something happens in xmonad
proper.
[0]: http://code.google.com/p/xmonad/issues/detail?id=177
author | Augie Fackler <durin42@gmail.com> |
---|---|
date | Wed, 02 Nov 2011 09:53:57 -0500 |
parents | fed8445581bb |
children | 64e73453e43f |
line wrap: on
line diff
--- a/.xmonad/xmonad.hs +++ b/.xmonad/xmonad.hs @@ -3,6 +3,7 @@ import XMonad import XMonad import XMonad.Config.Gnome import XMonad.Hooks.ManageDocks +import XMonad.Hooks.ICCCMFocus import XMonad.Layout import XMonad.Layout.Column import XMonad.Layout.LayoutBuilder @@ -26,6 +27,7 @@ main = do { terminal = "urxvt -sr -bg Black -fg White" , modMask = mod4Mask , layoutHook = avoidStruts myLayout + , logHook = takeTopFocus } `additionalKeys` [ ((mod4Mask, xK_a), spawn "gnome-screensaver-command --lock") , ((mod4Mask, xK_p), spawn myDmenuTitleBar)