summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorLibravatar Ryan Dwyer <ryandwyer1@gmail.com>2018-05-14 11:48:15 +1000
committerLibravatar Ryan Dwyer <ryandwyer1@gmail.com>2018-05-14 11:48:15 +1000
commit92b8497a0b7cb866dfea2214625c5a58724aa4d6 (patch)
tree20e1308a555f14212ac246af0cd559d3a37a5065
parentxdg_shell: Replace get_prop with get_string_prop (diff)
downloadsway-92b8497a0b7cb866dfea2214625c5a58724aa4d6.tar.gz
sway-92b8497a0b7cb866dfea2214625c5a58724aa4d6.tar.zst
sway-92b8497a0b7cb866dfea2214625c5a58724aa4d6.zip
Fix crash when launching programs from dmenu
-rw-r--r--sway/tree/view.c3
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) {
400 } 400 }
401 401
402 struct sway_seat *seat = input_manager_current_seat(input_manager); 402 struct sway_seat *seat = input_manager_current_seat(input_manager);
403 struct sway_container *focus = seat_get_focus(seat); 403 struct sway_container *focus =
404 seat_get_focus_inactive(seat, &root_container);
404 struct sway_container *cont = NULL; 405 struct sway_container *cont = NULL;
405 406
406 // Check if there's any `assign` criteria for the view 407 // Check if there's any `assign` criteria for the view