diff options
author | Ben Boeckel <mathstuf@gmail.com> | 2011-05-15 23:03:12 +0200 |
---|---|---|
committer | Ben Boeckel <mathstuf@gmail.com> | 2011-05-15 23:03:12 +0200 |
commit | 675e2b70b16fdc4151bc2ec8b8953804bdd428b6 (patch) | |
tree | e3eec038f289ee57f08c983e0270a3e264c9b1a9 /XMonad | |
parent | d3479b1865d7456b40e5f73427f7d55dbe53e0f6 (diff) | |
download | XMonadContrib-675e2b70b16fdc4151bc2ec8b8953804bdd428b6.tar.gz XMonadContrib-675e2b70b16fdc4151bc2ec8b8953804bdd428b6.tar.xz XMonadContrib-675e2b70b16fdc4151bc2ec8b8953804bdd428b6.zip |
ungrab-keyboard-before-action
Ignore-this: 5b8f3c286e8231a4d7ade2acbb2ae84a
If an action that requires the keyboard to be grabbed (e.g., launching dmenu),
it is a race when submapping the action as to whether the action will have
access to the keyboard or not. To fix this, the keyboard should be ungrabbed
before executing the action.
darcs-hash:20110515210312-24e3f-42b3c50a280ec90bec11cb48b57152d062c33b01.gz
Diffstat (limited to 'XMonad')
-rw-r--r-- | XMonad/Actions/Submap.hs | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/XMonad/Actions/Submap.hs b/XMonad/Actions/Submap.hs index 6788326..17ab676 100644 --- a/XMonad/Actions/Submap.hs +++ b/XMonad/Actions/Submap.hs @@ -76,6 +76,7 @@ submapDefault def keys = do else return (m, keysym) -- Remove num lock mask and Xkb group state bits m' <- cleanMask $ m .&. ((1 `shiftL` 12) - 1) - maybe def id (M.lookup (m', s) keys) io $ ungrabKeyboard d currentTime + + maybe def id (M.lookup (m', s) keys) |