diff options
author | Luofan Chen <clfbbn@gmail.com> | 2024-03-01 11:43:14 +0800 |
---|---|---|
committer | Simon Ser <contact@emersion.fr> | 2024-03-01 09:53:43 +0100 |
commit | 2058209a130f5051b59d8ebb24196409695deaaf (patch) | |
tree | 867fea97c4b4d78a61da441192286c7563faf3fa /sway/input/seat.c | |
parent | ipc: add `scratchpad_state` property to GET_TREE (diff) | |
download | sway-2058209a130f5051b59d8ebb24196409695deaaf.tar.gz sway-2058209a130f5051b59d8ebb24196409695deaaf.tar.zst sway-2058209a130f5051b59d8ebb24196409695deaaf.zip |
input: Rename WLR_INPUT_DEVICE_TABLET_TOOL to WLR_INPUT_DEVICE_TABLET
wlroots has changed the naming, causing the following build errors when
building:
error: ‘WLR_INPUT_DEVICE_TABLET_TOOL’ undeclared
Diffstat (limited to 'sway/input/seat.c')
-rw-r--r-- | sway/input/seat.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/sway/input/seat.c b/sway/input/seat.c index 7ae29828..f2486893 100644 --- a/sway/input/seat.c +++ b/sway/input/seat.c | |||
@@ -607,7 +607,7 @@ static void seat_update_capabilities(struct sway_seat *seat) { | |||
607 | case WLR_INPUT_DEVICE_TOUCH: | 607 | case WLR_INPUT_DEVICE_TOUCH: |
608 | caps |= WL_SEAT_CAPABILITY_TOUCH; | 608 | caps |= WL_SEAT_CAPABILITY_TOUCH; |
609 | break; | 609 | break; |
610 | case WLR_INPUT_DEVICE_TABLET_TOOL: | 610 | case WLR_INPUT_DEVICE_TABLET: |
611 | caps |= WL_SEAT_CAPABILITY_POINTER; | 611 | caps |= WL_SEAT_CAPABILITY_POINTER; |
612 | break; | 612 | break; |
613 | case WLR_INPUT_DEVICE_SWITCH: | 613 | case WLR_INPUT_DEVICE_SWITCH: |
@@ -665,7 +665,7 @@ static const char *get_builtin_output_name(void) { | |||
665 | static bool is_touch_or_tablet_tool(struct sway_seat_device *seat_device) { | 665 | static bool is_touch_or_tablet_tool(struct sway_seat_device *seat_device) { |
666 | switch (seat_device->input_device->wlr_device->type) { | 666 | switch (seat_device->input_device->wlr_device->type) { |
667 | case WLR_INPUT_DEVICE_TOUCH: | 667 | case WLR_INPUT_DEVICE_TOUCH: |
668 | case WLR_INPUT_DEVICE_TABLET_TOOL: | 668 | case WLR_INPUT_DEVICE_TABLET: |
669 | return true; | 669 | return true; |
670 | default: | 670 | default: |
671 | return false; | 671 | return false; |
@@ -680,7 +680,7 @@ static void seat_apply_input_mapping(struct sway_seat *seat, | |||
680 | switch (sway_device->input_device->wlr_device->type) { | 680 | switch (sway_device->input_device->wlr_device->type) { |
681 | case WLR_INPUT_DEVICE_POINTER: | 681 | case WLR_INPUT_DEVICE_POINTER: |
682 | case WLR_INPUT_DEVICE_TOUCH: | 682 | case WLR_INPUT_DEVICE_TOUCH: |
683 | case WLR_INPUT_DEVICE_TABLET_TOOL: | 683 | case WLR_INPUT_DEVICE_TABLET: |
684 | break; | 684 | break; |
685 | default: | 685 | default: |
686 | return; // these devices don't support mappings | 686 | return; // these devices don't support mappings |
@@ -873,7 +873,7 @@ void seat_configure_device(struct sway_seat *seat, | |||
873 | case WLR_INPUT_DEVICE_TOUCH: | 873 | case WLR_INPUT_DEVICE_TOUCH: |
874 | seat_configure_touch(seat, seat_device); | 874 | seat_configure_touch(seat, seat_device); |
875 | break; | 875 | break; |
876 | case WLR_INPUT_DEVICE_TABLET_TOOL: | 876 | case WLR_INPUT_DEVICE_TABLET: |
877 | seat_configure_tablet_tool(seat, seat_device); | 877 | seat_configure_tablet_tool(seat, seat_device); |
878 | break; | 878 | break; |
879 | case WLR_INPUT_DEVICE_TABLET_PAD: | 879 | case WLR_INPUT_DEVICE_TABLET_PAD: |
@@ -912,7 +912,7 @@ void seat_reset_device(struct sway_seat *seat, | |||
912 | case WLR_INPUT_DEVICE_TOUCH: | 912 | case WLR_INPUT_DEVICE_TOUCH: |
913 | seat_reset_input_config(seat, seat_device); | 913 | seat_reset_input_config(seat, seat_device); |
914 | break; | 914 | break; |
915 | case WLR_INPUT_DEVICE_TABLET_TOOL: | 915 | case WLR_INPUT_DEVICE_TABLET: |
916 | seat_reset_input_config(seat, seat_device); | 916 | seat_reset_input_config(seat, seat_device); |
917 | break; | 917 | break; |
918 | case WLR_INPUT_DEVICE_TABLET_PAD: | 918 | case WLR_INPUT_DEVICE_TABLET_PAD: |