summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRob Bradford <rob@linux.intel.com>2011-12-09 16:54:52 +0000
committerRob Bradford <rob@linux.intel.com>2011-12-09 16:56:56 +0000
commitf482c4230e35160480bef5001f1986ef1521a20a (patch)
tree61cc567164f875c91fd90554f6d8018f33c8ffe4
parentca20133aa4c9a1abd4549b715c3876d434e7c6db (diff)
downloadclutter-rbradford/wayland.tar.gz
wayland: Implement set_fullscreen vfunc in ClutterStageWaylandrbradford/wayland
-rw-r--r--clutter/wayland/clutter-stage-wayland.c13
1 files changed, 13 insertions, 0 deletions
diff --git a/clutter/wayland/clutter-stage-wayland.c b/clutter/wayland/clutter-stage-wayland.c
index a0edfdccf..4fb551888 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