diff options
Diffstat (limited to 'sway/desktop/wl_shell.c')
-rw-r--r-- | sway/desktop/wl_shell.c | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/sway/desktop/wl_shell.c b/sway/desktop/wl_shell.c index 3f5a358a..3d3b1c44 100644 --- a/sway/desktop/wl_shell.c +++ b/sway/desktop/wl_shell.c | |||
@@ -7,6 +7,8 @@ | |||
7 | #include "sway/layout.h" | 7 | #include "sway/layout.h" |
8 | #include "sway/server.h" | 8 | #include "sway/server.h" |
9 | #include "sway/view.h" | 9 | #include "sway/view.h" |
10 | #include "sway/input/seat.h" | ||
11 | #include "sway/input/input-manager.h" | ||
10 | #include "log.h" | 12 | #include "log.h" |
11 | 13 | ||
12 | static bool assert_wl_shell(struct sway_view *view) { | 14 | static bool assert_wl_shell(struct sway_view *view) { |
@@ -126,4 +128,9 @@ void handle_wl_shell_surface(struct wl_listener *listener, void *data) { | |||
126 | sway_view->swayc = cont; | 128 | sway_view->swayc = cont; |
127 | 129 | ||
128 | arrange_windows(cont->parent, -1, -1); | 130 | arrange_windows(cont->parent, -1, -1); |
131 | |||
132 | for (int i = 0; i < server->input->seats->length; ++i) { | ||
133 | struct sway_seat *seat = server->input->seats->items[i]; | ||
134 | sway_seat_set_focus(seat, cont); | ||
135 | } | ||
129 | } | 136 | } |