From da19c3dfca17c93e2e4ffa18c73dc177f94d3003 Mon Sep 17 00:00:00 2001 From: Rob Bradford Date: Fri, 9 Dec 2011 16:54:52 +0000 Subject: [PATCH] wayland: Implement set_fullscreen vfunc in ClutterStageWayland --- clutter/wayland/clutter-stage-wayland.c | 13 +++++++++++++ 1 file changed, 13 insertions(+) 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 @@ -99,6 +99,18 @@ clutter_stage_wayland_realize (ClutterStageWindow *stage_window) return TRUE; } +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