diff options
author | emersion <contact@emersion.fr> | 2018-01-22 01:16:23 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-01-22 01:16:23 +0100 |
commit | 0c58673c6a108ba241419a0f1d5fecd47f22370e (patch) | |
tree | c3e19af6dd70f04fc5c617e932b4afcc7a1b41d9 /sway/input/input-manager.c | |
parent | Remove sway/old/ (diff) | |
parent | dont allow kill command in config (diff) | |
download | sway-0c58673c6a108ba241419a0f1d5fecd47f22370e.tar.gz sway-0c58673c6a108ba241419a0f1d5fecd47f22370e.tar.zst sway-0c58673c6a108ba241419a0f1d5fecd47f22370e.zip |
Merge pull request #1574 from acrisci/config-refactor
Command criteria
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 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 | |||
376 | struct 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 | } | ||