Fix crash when running deferred commands

Fixes #2541
This commit is contained in:
Ryan Dwyer 2018-08-31 19:49:12 +10:00
parent de9e80459a
commit 1e0459f7f7

View File

@ -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);
}