aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authormarkt <markt>2007-06-28 22:23:58 (GMT)
committermarkt <markt>2007-06-28 22:23:58 (GMT)
commit4def8fad56d9503b5388678dbd721e4b7ed5c254 (patch)
tree5b84d68ad738ae2de9cee1cb2a6e38ccefe0ab91
parent4dbe7d4d84d5a300e236731aa0e5940110bff973 (diff)
downloadfluxbox-4def8fad56d9503b5388678dbd721e4b7ed5c254.zip
fluxbox-4def8fad56d9503b5388678dbd721e4b7ed5c254.tar.bz2
strip off additional bits in event state provided by Xorg
-rw-r--r--src/FbTk/KeyUtil.hh5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/FbTk/KeyUtil.hh b/src/FbTk/KeyUtil.hh
index e80918a..9311561 100644
--- a/src/FbTk/KeyUtil.hh
+++ b/src/FbTk/KeyUtil.hh
@@ -69,8 +69,9 @@ public:
69 @return the cleaned state number 69 @return the cleaned state number
70 */ 70 */
71 unsigned int cleanMods(unsigned int mods) { 71 unsigned int cleanMods(unsigned int mods) {
72 //remove numlock, capslock and scrolllock 72 // remove numlock, capslock, and scrolllock
73 return mods & ~(capslock() | numlock() | scrolllock()); 73 // and anything beyond Button5Mask
74 return mods & ~(capslock() | numlock() | scrolllock()) & ((1<<13) - 1);
74 } 75 }
75 76
76 /** 77 /**