Mercurial > dotfiles
changeset 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 | 09c0d4ed07f3 |
children | 393535e99b8a |
files | .xmonad/xmonad.hs |
diffstat | 1 files changed, 2 insertions(+), 0 deletions(-) [+] |
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)