[gtk+/wip/csd] wayland: Synthesize fullscreen window state change
- From: Rob Bradford <rbradford src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk+/wip/csd] wayland: Synthesize fullscreen window state change
- Date: Thu, 31 Jan 2013 17:25:06 +0000 (UTC)
commit ac098538425ec2b84fbb366ff37fb67cd02c2bab
Author: Rob Bradford <rob linux intel com>
Date: Thu Jan 31 11:25:02 2013 +0000
wayland: Synthesize fullscreen window state change
gdk/wayland/gdkwindow-wayland.c | 6 ++++++
1 files changed, 6 insertions(+), 0 deletions(-)
---
diff --git a/gdk/wayland/gdkwindow-wayland.c b/gdk/wayland/gdkwindow-wayland.c
index 0f5ab4b..1135bfa 100644
--- a/gdk/wayland/gdkwindow-wayland.c
+++ b/gdk/wayland/gdkwindow-wayland.c
@@ -1288,6 +1288,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;
}
@@ -1303,8 +1306,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;
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]