diff options
Diffstat (limited to 'sway/desktop/xwayland.c')
-rw-r--r-- | sway/desktop/xwayland.c | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/sway/desktop/xwayland.c b/sway/desktop/xwayland.c index 7603d3ca..7933f7b2 100644 --- a/sway/desktop/xwayland.c +++ b/sway/desktop/xwayland.c | |||
@@ -233,10 +233,9 @@ void handle_xwayland_surface(struct wl_listener *listener, void *data) { | |||
233 | return; | 233 | return; |
234 | } | 234 | } |
235 | 235 | ||
236 | swayc_t *parent = root_container.children->items[0]; | 236 | struct sway_seat *seat = input_manager_current_seat(input_manager); |
237 | parent = parent->children->items[0]; // workspace | 237 | swayc_t *focus = sway_seat_get_focus_inactive(seat, &root_container); |
238 | 238 | swayc_t *cont = new_view(focus, sway_view); | |
239 | swayc_t *cont = new_view(parent, sway_view); | ||
240 | sway_view->swayc = cont; | 239 | sway_view->swayc = cont; |
241 | 240 | ||
242 | arrange_windows(cont->parent, -1, -1); | 241 | arrange_windows(cont->parent, -1, -1); |