aboutsummaryrefslogtreecommitdiffstats
path: root/sway/input/input-manager.c
diff options
context:
space:
mode:
Diffstat (limited to 'sway/input/input-manager.c')
-rw-r--r--sway/input/input-manager.c11
1 files changed, 11 insertions, 0 deletions
diff --git a/sway/input/input-manager.c b/sway/input/input-manager.c
index bfe9d9c4..2d119cf2 100644
--- a/sway/input/input-manager.c
+++ b/sway/input/input-manager.c
@@ -372,3 +372,14 @@ void sway_input_manager_configure_xcursor(struct sway_input_manager *input) {
372 sway_seat_configure_xcursor(seat); 372 sway_seat_configure_xcursor(seat);
373 } 373 }
374} 374}
375
376struct sway_seat *sway_input_manager_get_default_seat(
377 struct sway_input_manager *input) {
378 struct sway_seat *seat = NULL;
379 wl_list_for_each(seat, &input->seats, link) {
380 if (strcmp(seat->wlr_seat->name, "seat0") == 0) {
381 return seat;
382 }
383 }
384 return seat;
385}