diff options
author | Tony Crisci <tony@dubstepdish.com> | 2018-01-20 14:10:11 -0500 |
---|---|---|
committer | Tony Crisci <tony@dubstepdish.com> | 2018-01-20 14:10:11 -0500 |
commit | c353e01c85049cfbc09510657e453b6aa5fd9c2d (patch) | |
tree | c6ef14cfc08861ff8c62675ca1fbbbb00e9197cf /sway/input/input-manager.c | |
parent | seat config handler context (diff) | |
download | sway-c353e01c85049cfbc09510657e453b6aa5fd9c2d.tar.gz sway-c353e01c85049cfbc09510657e453b6aa5fd9c2d.tar.zst sway-c353e01c85049cfbc09510657e453b6aa5fd9c2d.zip |
add kill command
Diffstat (limited to 'sway/input/input-manager.c')
-rw-r--r-- | sway/input/input-manager.c | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/sway/input/input-manager.c b/sway/input/input-manager.c index 26cf5035..7b19991b 100644 --- a/sway/input/input-manager.c +++ b/sway/input/input-manager.c | |||
@@ -369,3 +369,14 @@ void sway_input_manager_configure_xcursor(struct sway_input_manager *input) { | |||
369 | sway_seat_configure_xcursor(seat); | 369 | sway_seat_configure_xcursor(seat); |
370 | } | 370 | } |
371 | } | 371 | } |
372 | |||
373 | struct sway_seat *sway_input_manager_get_default_seat( | ||
374 | struct sway_input_manager *input) { | ||
375 | struct sway_seat *seat = NULL; | ||
376 | wl_list_for_each(seat, &input->seats, link) { | ||
377 | if (strcmp(seat->wlr_seat->name, "seat0") == 0) { | ||
378 | return seat; | ||
379 | } | ||
380 | } | ||
381 | return seat; | ||
382 | } | ||