From f649d732f9c2507664a85e5358ccd6b541ffb24a Mon Sep 17 00:00:00 2001 From: Adel Gadllah Date: Fri, 14 Mar 2014 10:55:52 +0100 Subject: [PATCH] clutter-stage-wayland: Enable clipped redraws _clutter_stage_window_can_clip_redraws is used to check for clipped redraws support but can_clip_redraws is not implemented by clutter-stage-wayland so it always returns FALSE causing full screen redraws. Fix that by implementing can_clip_redraws in clutter-stage-wayland. https://bugzilla.gnome.org/show_bug.cgi?id=726315 --- clutter/wayland/clutter-stage-wayland.c | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/clutter/wayland/clutter-stage-wayland.c b/clutter/wayland/clutter-stage-wayland.c index 4c3e0c3e0..a9658bfca 100644 --- a/clutter/wayland/clutter-stage-wayland.c +++ b/clutter/wayland/clutter-stage-wayland.c @@ -229,6 +229,12 @@ clutter_stage_wayland_resize (ClutterStageWindow *stage_window, } } +static gboolean +clutter_stage_wayland_can_clip_redraws (ClutterStageWindow *stage_window) +{ + return TRUE; +} + static void clutter_stage_wayland_init (ClutterStageWayland *stage_wayland) { @@ -245,6 +251,7 @@ clutter_stage_window_iface_init (ClutterStageWindowIface *iface) iface->set_fullscreen = clutter_stage_wayland_set_fullscreen; iface->set_cursor_visible = clutter_stage_wayland_set_cursor_visible; iface->resize = clutter_stage_wayland_resize; + iface->can_clip_redraws = clutter_stage_wayland_can_clip_redraws; } static void