diff options
author | Ryan Dwyer <ryandwyer1@gmail.com> | 2018-05-14 11:48:15 +1000 |
---|---|---|
committer | Ryan Dwyer <ryandwyer1@gmail.com> | 2018-05-14 11:48:15 +1000 |
commit | 92b8497a0b7cb866dfea2214625c5a58724aa4d6 (patch) | |
tree | 20e1308a555f14212ac246af0cd559d3a37a5065 | |
parent | 8432d8a15e4191d602d72efdcb82ea241dd30b86 (diff) | |
download | sway-92b8497a0b7cb866dfea2214625c5a58724aa4d6.tar.xz |
Fix crash when launching programs from dmenu
-rw-r--r-- | sway/tree/view.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/sway/tree/view.c b/sway/tree/view.c index f872bef6..41dee1c4 100644 --- a/sway/tree/view.c +++ b/sway/tree/view.c @@ -400,7 +400,8 @@ void view_map(struct sway_view *view, struct wlr_surface *wlr_surface) { } struct sway_seat *seat = input_manager_current_seat(input_manager); - struct sway_container *focus = seat_get_focus(seat); + struct sway_container *focus = + seat_get_focus_inactive(seat, &root_container); struct sway_container *cont = NULL; // Check if there's any `assign` criteria for the view |