commit 80270ba086ae3c46ca66f794c5a2111ad1efa1bb
parent 89a045835f284e368f36ea5b508f70a41f65d6be
Author: Drew DeVault <sir@cmpwn.com>
Date: Sat, 1 Sep 2018 13:00:26 -0400
Merge pull request #2544 from RyanDwyer/fix-deferred-cmd-crash
Fix crash when running deferred commands
Diffstat:
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/sway/input/seat.c b/sway/input/seat.c
@@ -635,7 +635,7 @@ void seat_set_focus_warp(struct sway_seat *seat,
// find new output's old workspace, which might have to be removed if empty
struct sway_container *new_output_last_ws = NULL;
- if (last_output != new_output) {
+ if (new_output && last_output != new_output) {
new_output_last_ws = seat_get_active_child(seat, new_output);
}