Skip to content

Commit 2265985

Browse files
committed
1 parent 042e9d4 commit 2265985

File tree

2 files changed

+4
-0
lines changed

2 files changed

+4
-0
lines changed

src/backends/native/meta-input-settings-native.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -547,6 +547,8 @@ action_to_evcode (CDesktopStylusButtonAction action)
547547
return BTN_BACK;
548548
case C_DESKTOP_STYLUS_BUTTON_ACTION_FORWARD:
549549
return BTN_FORWARD;
550+
case C_DESKTOP_STYLUS_BUTTON_ACTION_DISABLED:
551+
return BTN_DEAD; // This needs testing under wayland?
550552
case C_DESKTOP_STYLUS_BUTTON_ACTION_DEFAULT:
551553
default:
552554
return 0;

src/backends/x11/meta-input-settings-x11.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -901,6 +901,8 @@ action_to_button (CDesktopStylusButtonAction action,
901901
return 8;
902902
case C_DESKTOP_STYLUS_BUTTON_ACTION_FORWARD:
903903
return 9;
904+
case C_DESKTOP_STYLUS_BUTTON_ACTION_DISABLED:
905+
return 0;
904906
case C_DESKTOP_STYLUS_BUTTON_ACTION_DEFAULT:
905907
default:
906908
return button;

0 commit comments

Comments
 (0)