diff options
Diffstat (limited to 'sway/desktop/xdg_shell_v6.c')
-rw-r--r-- | sway/desktop/xdg_shell_v6.c | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/sway/desktop/xdg_shell_v6.c b/sway/desktop/xdg_shell_v6.c index 2435c256..8ad6a5ec 100644 --- a/sway/desktop/xdg_shell_v6.c +++ b/sway/desktop/xdg_shell_v6.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_xdg(struct sway_view *view) { | 14 | static bool assert_xdg(struct sway_view *view) { |
@@ -132,4 +134,9 @@ void handle_xdg_shell_v6_surface(struct wl_listener *listener, void *data) { | |||
132 | sway_view->swayc = cont; | 134 | sway_view->swayc = cont; |
133 | 135 | ||
134 | arrange_windows(cont->parent, -1, -1); | 136 | arrange_windows(cont->parent, -1, -1); |
137 | |||
138 | for (int i = 0; i < server->input->seats->length; ++i) { | ||
139 | struct sway_seat *seat = server->input->seats->items[i]; | ||
140 | sway_seat_set_focus(seat, cont); | ||
141 | } | ||
135 | } | 142 | } |