diff --git a/src/backends/native/meta-input-settings-native.c b/src/backends/native/meta-input-settings-native.c index f0ace047b..22042eb6c 100644 --- a/src/backends/native/meta-input-settings-native.c +++ b/src/backends/native/meta-input-settings-native.c @@ -547,6 +547,8 @@ action_to_evcode (CDesktopStylusButtonAction action) return BTN_BACK; case C_DESKTOP_STYLUS_BUTTON_ACTION_FORWARD: return BTN_FORWARD; + case C_DESKTOP_STYLUS_BUTTON_ACTION_DISABLED: + return BTN_DEAD; // This needs testing under wayland? case C_DESKTOP_STYLUS_BUTTON_ACTION_DEFAULT: default: return 0; diff --git a/src/backends/x11/meta-input-settings-x11.c b/src/backends/x11/meta-input-settings-x11.c index 3e6492895..3eaa26703 100644 --- a/src/backends/x11/meta-input-settings-x11.c +++ b/src/backends/x11/meta-input-settings-x11.c @@ -901,6 +901,8 @@ action_to_button (CDesktopStylusButtonAction action, return 8; case C_DESKTOP_STYLUS_BUTTON_ACTION_FORWARD: return 9; + case C_DESKTOP_STYLUS_BUTTON_ACTION_DISABLED: + return 0; case C_DESKTOP_STYLUS_BUTTON_ACTION_DEFAULT: default: return button;