summaryrefslogtreecommitdiff
path: root/sway/desktop/wl_shell.c
diff options
context:
space:
mode:
Diffstat (limited to 'sway/desktop/wl_shell.c')
-rw-r--r--sway/desktop/wl_shell.c5
1 files changed, 1 insertions, 4 deletions
diff --git a/sway/desktop/wl_shell.c b/sway/desktop/wl_shell.c
index 3d3b1c44..df81d5be 100644
--- a/sway/desktop/wl_shell.c
+++ b/sway/desktop/wl_shell.c
@@ -129,8 +129,5 @@ void handle_wl_shell_surface(struct wl_listener *listener, void *data) {
arrange_windows(cont->parent, -1, -1);
- for (int i = 0; i < server->input->seats->length; ++i) {
- struct sway_seat *seat = server->input->seats->items[i];
- sway_seat_set_focus(seat, cont);
- }
+ sway_input_manager_set_focus(input_manager, cont);
}