diff options
author | Simon Ser <contact@emersion.fr> | 2023-12-04 15:59:11 +0100 |
---|---|---|
committer | Simon Ser <contact@emersion.fr> | 2023-12-13 10:11:35 +0100 |
commit | e8a02056079a6aa9bead020677667e51fc41a055 (patch) | |
tree | 531f12903ee6f12974c079acb535cf096a75335e /sway/input/seat.c | |
parent | input/seat: inline seat_set_exclusive_client() with NULL client (diff) | |
download | sway-e8a02056079a6aa9bead020677667e51fc41a055.tar.gz sway-e8a02056079a6aa9bead020677667e51fc41a055.tar.zst sway-e8a02056079a6aa9bead020677667e51fc41a055.zip |
input/seat: rename seat_set_exclusive_client()
Diffstat (limited to 'sway/input/seat.c')
-rw-r--r-- | sway/input/seat.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/sway/input/seat.c b/sway/input/seat.c index b269a4cd..31c9b72b 100644 --- a/sway/input/seat.c +++ b/sway/input/seat.c | |||
@@ -1369,8 +1369,7 @@ void seat_set_focus_layer(struct sway_seat *seat, | |||
1369 | seat->focused_layer = layer; | 1369 | seat->focused_layer = layer; |
1370 | } | 1370 | } |
1371 | 1371 | ||
1372 | void seat_set_exclusive_client(struct sway_seat *seat, | 1372 | void seat_unfocus_unless_client(struct sway_seat *seat, struct wl_client *client) { |
1373 | struct wl_client *client) { | ||
1374 | if (seat->focused_layer) { | 1373 | if (seat->focused_layer) { |
1375 | if (wl_resource_get_client(seat->focused_layer->resource) != client) { | 1374 | if (wl_resource_get_client(seat->focused_layer->resource) != client) { |
1376 | seat_set_focus_layer(seat, NULL); | 1375 | seat_set_focus_layer(seat, NULL); |