[clutter/fosdem-2012] wayland: Correctly support fullscreening before the stage is realized
- From: Neil Roberts <nroberts src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [clutter/fosdem-2012] wayland: Correctly support fullscreening before the stage is realized
- Date: Mon, 30 Jan 2012 12:07:17 +0000 (UTC)
commit e0aea7baa21ea6a8c1272ceb8ad699ad33442bd6
Author: Rob Bradford <rob linux intel com>
Date: Thu Jan 26 15:39:16 2012 +0000
wayland: Correctly support fullscreening before the stage is realized
Rather than just call into wl_shell_surface_set_fullscreen we must repeat all
the steps to correctly fullscreen the surface.
clutter/wayland/clutter-stage-wayland.c | 6 +++++-
1 files changed, 5 insertions(+), 1 deletions(-)
---
diff --git a/clutter/wayland/clutter-stage-wayland.c b/clutter/wayland/clutter-stage-wayland.c
index 046cac4..ae78f4f 100644
--- a/clutter/wayland/clutter-stage-wayland.c
+++ b/clutter/wayland/clutter-stage-wayland.c
@@ -74,6 +74,10 @@ static const struct wl_shell_surface_listener shell_surface_listener = {
handle_configure,
};
+static void
+clutter_stage_wayland_set_fullscreen (ClutterStageWindow *stage_window,
+ gboolean fullscreen);
+
static gboolean
clutter_stage_wayland_realize (ClutterStageWindow *stage_window)
{
@@ -97,7 +101,7 @@ clutter_stage_wayland_realize (ClutterStageWindow *stage_window)
stage_wayland->wayland_shell_surface = wl_shell_surface;
if (stage_wayland->fullscreen)
- wl_shell_surface_set_fullscreen (stage_wayland->wayland_shell_surface);
+ clutter_stage_wayland_set_fullscreen (stage_window, TRUE);
return TRUE;
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]