summaryrefslogtreecommitdiff
path: root/libs
diff options
context:
space:
mode:
authorPaul Davis <paul@linuxaudiosystems.com>2020-05-18 13:24:56 -0600
committerPaul Davis <paul@linuxaudiosystems.com>2020-05-18 13:33:54 -0600
commit7ac9c7e88a9d3e20b685c7a6bbe4ede09ccfbfe8 (patch)
treef4336d755ca295df348979b763bd5170b088f971 /libs
parentcbc6bccc360c62f0b0347fd26a4d438de0d6c45a (diff)
fix mask used to extract keycode from KeyboardKey object
Previous 16 bit mask would do the wrong thing if the keycode was > 65536, which is not often true but is certainly a valid value (and seen on some platforms)
Diffstat (limited to 'libs')
-rw-r--r--libs/gtkmm2ext/gtkmm2ext/bindings.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/libs/gtkmm2ext/gtkmm2ext/bindings.h b/libs/gtkmm2ext/gtkmm2ext/bindings.h
index 34b2cd4cce..9f33d5cffd 100644
--- a/libs/gtkmm2ext/gtkmm2ext/bindings.h
+++ b/libs/gtkmm2ext/gtkmm2ext/bindings.h
@@ -52,7 +52,7 @@ class LIBGTKMM2EXT_API KeyboardKey
static KeyboardKey null_key() { return KeyboardKey (0, 0); }
uint32_t state() const { return _val >> 32; }
- uint32_t key() const { return _val & 0xffff; }
+ uint32_t key() const { return _val & 0xffffffff; }
bool operator<(const KeyboardKey& other) const {
return _val < other._val;