Address new_output == NULL in seat_set_focus_warp

This commit is contained in:
Drew DeVault 2018-09-07 10:37:12 -04:00
parent d86afdc6ed
commit 437245b663

View file

@ -710,7 +710,8 @@ void seat_set_focus_warp(struct sway_seat *seat, struct sway_node *node,
workspace_consider_destroy(last_workspace);
}
if (config->mouse_warping && warp && new_output != last_output) {
if (config->mouse_warping && warp &&
new_output != last_output && new_output) {
double x = 0;
double y = 0;
if (container) {