Skip to content

Commit e252e41

Browse files
committed
GPU Wayland Display: Update keymap with correct defines for +/-
1 parent bda9fc4 commit e252e41

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

‎GPU/GPUTracking/display/frontend/GPUDisplayFrontendWayland.cxx‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -58,9 +58,9 @@ int32_t GPUDisplayFrontendWayland::GetKey(uint32_t key, uint32_t state)
5858
int32_t retVal = 0;
5959
if (mXKBkeymap) {
6060
xkb_keysym_t sym = xkb_state_key_get_one_sym(mXKBstate, key + 8);
61-
if (sym == 65453) {
61+
if (sym == XKB_KEY_KP_Subtract) {
6262
return ('-');
63-
} else if (sym == 65451) {
63+
} else if (sym == XKB_KEY_KP_Add) {
6464
return ('+');
6565
} else if (sym == XKB_KEY_Shift_L || sym == XKB_KEY_Shift_R) {
6666
return (KEY_SHIFT);

0 commit comments

Comments
 (0)