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
This commit is contained in:
Adel Gadllah 2014-03-14 10:55:52 +01:00
parent e4497baaf0
commit f649d732f9

View File

@ -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