diff options
author | Peter Hutterer <peter@cs.unisa.edu.au> | 2007-08-06 17:54:15 +0930 |
---|---|---|
committer | Peter Hutterer <peter@cs.unisa.edu.au> | 2007-08-06 17:54:15 +0930 |
commit | 3cda1a0e096e9abaad8324e56ad04b4d608081c7 (patch) | |
tree | 886861baf70897a7b63fd3ca2e92b3b345631371 | |
parent | 6c22cf17797a3b92f958931317cae6243a6f130c (diff) |
Don't expect a bitflag when checking for IsXExtensionXYZ.
I fixed this bug at least three times on various machines. Why does it keep
coming back?
-rw-r--r-- | src/Manager.cpp | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/src/Manager.cpp b/src/Manager.cpp index 5ef35e1..8a44b72 100644 --- a/src/Manager.cpp +++ b/src/Manager.cpp @@ -124,7 +124,7 @@ void Manager::initXi() currDevice = &devices[--devicecount]; - if ((currDevice->use & IsXExtensionPointer)) + if ((currDevice->use == IsXExtensionPointer)) { try { @@ -135,8 +135,7 @@ void Manager::initXi() { ERR("%s\n", e->message.c_str()); } - } - if ((currDevice->use & IsXExtensionKeyboard)) + } else if ((currDevice->use == IsXExtensionKeyboard)) { try { |