[clutter/rbradford/wayland: 2/2] wayland: Implement set_fullscreen vfunc in ClutterStageWayland



commit f482c4230e35160480bef5001f1986ef1521a20a
Author: Rob Bradford <rob linux intel com>
Date:   Fri Dec 9 16:54:52 2011 +0000

    wayland: Implement set_fullscreen vfunc in ClutterStageWayland

 clutter/wayland/clutter-stage-wayland.c |   13 +++++++++++++
 1 files changed, 13 insertions(+), 0 deletions(-)
---
diff --git a/clutter/wayland/clutter-stage-wayland.c b/clutter/wayland/clutter-stage-wayland.c
index a0edfdc..4fb5518 100644
--- a/clutter/wayland/clutter-stage-wayland.c
+++ b/clutter/wayland/clutter-stage-wayland.c
@@ -100,6 +100,18 @@ clutter_stage_wayland_realize (ClutterStageWindow *stage_window)
 }
 
 static void
+clutter_stage_wayland_set_fullscreen (ClutterStageWindow *stage_window,
+                                      gboolean            fullscreen)
+{
+  ClutterStageWayland *stage_wayland = CLUTTER_STAGE_WAYLAND (stage_window);
+
+  if (fullscreen)
+    wl_shell_surface_set_fullscreen (stage_wayland->wayland_shell_surface);
+  else
+    g_warning (G_STRLOC ": There is no Wayland API for un-fullscreening now");
+}
+
+static void
 clutter_stage_wayland_init (ClutterStageWayland *stage_wayland)
 {
 }
@@ -110,6 +122,7 @@ clutter_stage_window_iface_init (ClutterStageWindowIface *iface)
   clutter_stage_window_parent_iface = g_type_interface_peek_parent (iface);
 
   iface->realize = clutter_stage_wayland_realize;
+  iface->set_fullscreen = clutter_stage_wayland_set_fullscreen;
 }
 
 static void



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]