aboutsummaryrefslogtreecommitdiff
path: root/sway/input/seat.c
diff options
context:
space:
mode:
authorSimon Ser <contact@emersion.fr>2023-11-22 00:49:23 +0100
committerSimon Ser <contact@emersion.fr>2023-12-13 10:11:35 +0100
commitdbd70faf2e0a8115f681995801fd4b82f4682604 (patch)
treef9c5f8dbf55396f1d7df172bf57386e13a3ce2f7 /sway/input/seat.c
parenta6ef12d968111d4d8c480124575d9d86ae61e470 (diff)
input/seat: drop exclusive_client
This was a input-inhibit concept.
Diffstat (limited to 'sway/input/seat.c')
-rw-r--r--sway/input/seat.c5
1 files changed, 1 insertions, 4 deletions
diff --git a/sway/input/seat.c b/sway/input/seat.c
index 0fd0e8e6..3ef0d713 100644
--- a/sway/input/seat.c
+++ b/sway/input/seat.c
@@ -1104,8 +1104,7 @@ bool seat_is_input_allowed(struct sway_seat *seat,
}
return false;
}
- struct wl_client *client = wl_resource_get_client(surface->resource);
- return seat->exclusive_client == client || seat->exclusive_client == NULL;
+ return true;
}
static void send_unfocus(struct sway_container *con, void *data) {
@@ -1373,7 +1372,6 @@ void seat_set_focus_layer(struct sway_seat *seat,
void seat_set_exclusive_client(struct sway_seat *seat,
struct wl_client *client) {
if (!client) {
- seat->exclusive_client = client;
// Triggers a refocus of the topmost surface layer if necessary
// TODO: Make layer surface focus per-output based on cursor position
for (int i = 0; i < root->outputs->length; ++i) {
@@ -1408,7 +1406,6 @@ void seat_set_exclusive_client(struct sway_seat *seat,
now.tv_nsec / 1000, point->touch_id);
}
}
- seat->exclusive_client = client;
}
struct sway_node *seat_get_focus_inactive(struct sway_seat *seat,