summaryrefslogtreecommitdiff
path: root/src/wayland/meta-wayland-legacy-xdg-shell.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/wayland/meta-wayland-legacy-xdg-shell.c')
-rw-r--r--src/wayland/meta-wayland-legacy-xdg-shell.c2
1 files changed, 1 insertions, 1 deletions
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);
}