diff --git a/src/wayland/meta-wayland-legacy-xdg-shell.c b/src/wayland/meta-wayland-legacy-xdg-shell.c index 0311a264a..32551a843 100644 --- a/src/wayland/meta-wayland-legacy-xdg-shell.c +++ b/src/wayland/meta-wayland-legacy-xdg-shell.c @@ -434,7 +434,7 @@ zxdg_toplevel_v6_set_fullscreen (struct wl_client *client, if (output_resource) { MetaWaylandOutput *output = wl_resource_get_user_data (output_resource); - if (output) + if (output && output->logical_monitor) meta_window_move_to_monitor (window, output->logical_monitor->number); } diff --git a/src/wayland/meta-wayland-xdg-shell.c b/src/wayland/meta-wayland-xdg-shell.c index 7b1bff579..354f8f652 100644 --- a/src/wayland/meta-wayland-xdg-shell.c +++ b/src/wayland/meta-wayland-xdg-shell.c @@ -431,7 +431,7 @@ xdg_toplevel_set_fullscreen (struct wl_client *client, { MetaWaylandOutput *output = wl_resource_get_user_data (output_resource); - if (output) + if (output && output->logical_monitor) { meta_window_move_to_monitor (window, output->logical_monitor->number);