From 2145907cfe9baeca14da87390f72d93d20b36968 Mon Sep 17 00:00:00 2001 From: Rob Bradford Date: Thu, 31 Jan 2013 11:25:02 +0000 Subject: [PATCH] wayland: Synthesize fullscreen window state change --- gdk/wayland/gdkwindow-wayland.c | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/gdk/wayland/gdkwindow-wayland.c b/gdk/wayland/gdkwindow-wayland.c index f5dcd7e9e2..6f7e744a79 100644 --- a/gdk/wayland/gdkwindow-wayland.c +++ b/gdk/wayland/gdkwindow-wayland.c @@ -1319,6 +1319,9 @@ gdk_wayland_window_fullscreen (GdkWindow *window) WL_SHELL_SURFACE_FULLSCREEN_METHOD_DEFAULT, 0, NULL); + + gdk_synthesize_window_state (window, 0, GDK_WINDOW_STATE_FULLSCREEN); + impl->fullscreen = TRUE; } @@ -1334,8 +1337,11 @@ gdk_wayland_window_unfullscreen (GdkWindow *window) return; wl_shell_surface_set_toplevel (impl->shell_surface); + gdk_synthesize_window_state (window, GDK_WINDOW_STATE_FULLSCREEN, 0); gdk_wayland_window_configure (window, impl->saved_width, impl->saved_height, 0); + + impl->fullscreen = FALSE; }