mirror of
https://github.com/brl/mutter.git
synced 2024-12-23 19:42:05 +00:00
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:
parent
e4497baaf0
commit
f649d732f9
@ -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
|
static void
|
||||||
clutter_stage_wayland_init (ClutterStageWayland *stage_wayland)
|
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_fullscreen = clutter_stage_wayland_set_fullscreen;
|
||||||
iface->set_cursor_visible = clutter_stage_wayland_set_cursor_visible;
|
iface->set_cursor_visible = clutter_stage_wayland_set_cursor_visible;
|
||||||
iface->resize = clutter_stage_wayland_resize;
|
iface->resize = clutter_stage_wayland_resize;
|
||||||
|
iface->can_clip_redraws = clutter_stage_wayland_can_clip_redraws;
|
||||||
}
|
}
|
||||||
|
|
||||||
static void
|
static void
|
||||||
|
Loading…
Reference in New Issue
Block a user