diff options
author | Simon Ser <contact@emersion.fr> | 2023-12-04 15:56:54 +0100 |
---|---|---|
committer | Simon Ser <contact@emersion.fr> | 2023-12-13 10:11:35 +0100 |
commit | 607b8aed0c93a9101d9075b9c76e80460b6ed488 (patch) | |
tree | cc7a07f910378334ddd0879aaed85cd5d76aeb16 /sway/input/seat.c | |
parent | input/{keyboard,switch}: rename input_inhibited variable to locked (diff) | |
download | sway-607b8aed0c93a9101d9075b9c76e80460b6ed488.tar.gz sway-607b8aed0c93a9101d9075b9c76e80460b6ed488.tar.zst sway-607b8aed0c93a9101d9075b9c76e80460b6ed488.zip |
input/seat: inline seat_set_exclusive_client() with NULL client
Diffstat (limited to 'sway/input/seat.c')
-rw-r--r-- | sway/input/seat.c | 9 |
1 files changed, 0 insertions, 9 deletions
diff --git a/sway/input/seat.c b/sway/input/seat.c index 3ef0d713..b269a4cd 100644 --- a/sway/input/seat.c +++ b/sway/input/seat.c | |||
@@ -1371,15 +1371,6 @@ void seat_set_focus_layer(struct sway_seat *seat, | |||
1371 | 1371 | ||
1372 | void seat_set_exclusive_client(struct sway_seat *seat, | 1372 | void seat_set_exclusive_client(struct sway_seat *seat, |
1373 | struct wl_client *client) { | 1373 | struct wl_client *client) { |
1374 | if (!client) { | ||
1375 | // Triggers a refocus of the topmost surface layer if necessary | ||
1376 | // TODO: Make layer surface focus per-output based on cursor position | ||
1377 | for (int i = 0; i < root->outputs->length; ++i) { | ||
1378 | struct sway_output *output = root->outputs->items[i]; | ||
1379 | arrange_layers(output); | ||
1380 | } | ||
1381 | return; | ||
1382 | } | ||
1383 | if (seat->focused_layer) { | 1374 | if (seat->focused_layer) { |
1384 | if (wl_resource_get_client(seat->focused_layer->resource) != client) { | 1375 | if (wl_resource_get_client(seat->focused_layer->resource) != client) { |
1385 | seat_set_focus_layer(seat, NULL); | 1376 | seat_set_focus_layer(seat, NULL); |