Skip to content

Commit

Permalink
input settings: Allow disabling stylus buttons.
Browse files Browse the repository at this point in the history
  • Loading branch information
mtwebster committed Oct 18, 2023
1 parent 042e9d4 commit 2265985
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/backends/native/meta-input-settings-native.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down
2 changes: 2 additions & 0 deletions src/backends/x11/meta-input-settings-x11.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 2265985

Please sign in to comment.