diff options
author | Spencer Janssen <sjanssen@cse.unl.edu> | 2007-03-28 23:57:53 +0200 |
---|---|---|
committer | Spencer Janssen <sjanssen@cse.unl.edu> | 2007-03-28 23:57:53 +0200 |
commit | d10c7eafba08e3314336bee7b50f78e5a5d09e15 (patch) | |
tree | 346b7d8fb88b04e71dced57e919dd4461574efff | |
parent | 9d0e6b9aef0470824436be2b5851bc419aa8727e (diff) | |
download | xmonad-d10c7eafba08e3314336bee7b50f78e5a5d09e15.tar.gz xmonad-d10c7eafba08e3314336bee7b50f78e5a5d09e15.tar.xz xmonad-d10c7eafba08e3314336bee7b50f78e5a5d09e15.zip |
Fix refreshKeyboardMapping issues. Requires the latest X11-extras
darcs-hash:20070328215753-a5988-ee705ccb076ddccb83aa32f0c6b04247e255ed58.gz
-rw-r--r-- | Main.hs | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -16,7 +16,7 @@ import Data.Bits import qualified Data.Map as M -import Graphics.X11.Xlib +import Graphics.X11.Xlib hiding (refreshKeyboardMapping) import Graphics.X11.Xlib.Extras import Graphics.X11.Xinerama @@ -153,7 +153,7 @@ handle e@(MappingNotifyEvent {window = w}) = do -- this fromIntegral is only necessary with the old X11 version that uses -- Int instead of CInt. TODO delete it when there is a new release of X11 let m = (request e, first_keycode e, fromIntegral $ count e) - io $ refreshKeyboardMapping m + withDisplay $ \d -> io $ refreshKeyboardMapping d m when (request e == mappingKeyboard) $ withDisplay $ io . flip grabKeys w -- click on an unfocussed window |