aboutsummaryrefslogtreecommitdiffstats
path: root/sway/input/seat.c
diff options
context:
space:
mode:
authorLibravatar Simon Ser <contact@emersion.fr>2022-11-26 20:18:43 +0100
committerLibravatar Simon Zeni <simon@bl4ckb0ne.ca>2022-11-28 13:28:15 -0500
commite62299daa45de139b912325eb5800796586e57c7 (patch)
tree5a1972d97bd65000f8e328667f2a772c8622e9e8 /sway/input/seat.c
parentMake session optional (diff)
downloadsway-e62299daa45de139b912325eb5800796586e57c7.tar.gz
sway-e62299daa45de139b912325eb5800796586e57c7.tar.zst
sway-e62299daa45de139b912325eb5800796586e57c7.zip
Make libinput backend optional
Diffstat (limited to 'sway/input/seat.c')
-rw-r--r--sway/input/seat.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/sway/input/seat.c b/sway/input/seat.c
index c263eb82..4919bed0 100644
--- a/sway/input/seat.c
+++ b/sway/input/seat.c
@@ -4,6 +4,7 @@
4#include <string.h> 4#include <string.h>
5#include <strings.h> 5#include <strings.h>
6#include <time.h> 6#include <time.h>
7#include <wlr/config.h>
7#include <wlr/types/wlr_cursor.h> 8#include <wlr/types/wlr_cursor.h>
8#include <wlr/types/wlr_data_device.h> 9#include <wlr/types/wlr_data_device.h>
9#include <wlr/types/wlr_idle.h> 10#include <wlr/types/wlr_idle.h>
@@ -750,6 +751,7 @@ static void seat_apply_input_config(struct sway_seat *seat,
750 mapped_to_output = NULL; 751 mapped_to_output = NULL;
751 break; 752 break;
752 } 753 }
754#if WLR_HAS_LIBINPUT_BACKEND
753 if (mapped_to_output == NULL && is_touch_or_tablet_tool(sway_device) && 755 if (mapped_to_output == NULL && is_touch_or_tablet_tool(sway_device) &&
754 sway_libinput_device_is_builtin(sway_device->input_device)) { 756 sway_libinput_device_is_builtin(sway_device->input_device)) {
755 mapped_to_output = get_builtin_output_name(); 757 mapped_to_output = get_builtin_output_name();
@@ -758,6 +760,10 @@ static void seat_apply_input_config(struct sway_seat *seat,
758 mapped_to_output, sway_device->input_device->identifier); 760 mapped_to_output, sway_device->input_device->identifier);
759 } 761 }
760 } 762 }
763#else
764 (void)is_touch_or_tablet_tool;
765 (void)get_builtin_output_name;
766#endif
761 if (mapped_to_output == NULL) { 767 if (mapped_to_output == NULL) {
762 return; 768 return;
763 } 769 }