diff options
author | Jonas Ådahl <jadahl@gmail.com> | 2020-06-25 16:01:38 +0200 |
---|---|---|
committer | Jonas Ådahl <jadahl@gmail.com> | 2020-07-02 19:36:51 +0200 |
commit | 1ecdaa646fa3bb283838c135ca6d7415df8e5cb7 (patch) | |
tree | 55758eb777938b0081618c665adbb28d49b63540 /src/wayland | |
parent | 2f4d50c723c3794b701dbbb45e45d7ad6680a6f2 (diff) | |
download | mutter-1ecdaa646fa3bb283838c135ca6d7415df8e5cb7.tar.gz |
wayland: Respond to frame callbacks also if a clone was painted
This will mean that a surface on one monitor, with e.g. a preview on
another, will still get frame callbacks if the preview is painted, but
itself being hidden.
https://gitlab.gnome.org/GNOME/mutter/-/merge_requests/1285
Diffstat (limited to 'src/wayland')
-rw-r--r-- | src/wayland/meta-wayland.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/src/wayland/meta-wayland.c b/src/wayland/meta-wayland.c index 705b37c19..1feddef93 100644 --- a/src/wayland/meta-wayland.c +++ b/src/wayland/meta-wayland.c @@ -210,7 +210,6 @@ on_after_update (ClutterStage *stage, GList *l_cur = l; MetaWaylandSurface *surface = l->data; MetaSurfaceActor *actor; - GList *stage_views; MetaWaylandActorSurface *actor_surface; l = l->next; @@ -223,8 +222,8 @@ on_after_update (ClutterStage *stage, meta_surface_actor_is_obscured (actor)) continue; - stage_views = clutter_actor_peek_stage_views (CLUTTER_ACTOR (actor)); - if (!g_list_find (stage_views, stage_view)) + if (!clutter_actor_is_effectively_on_stage_view (CLUTTER_ACTOR (actor), + stage_view)) continue; actor_surface = META_WAYLAND_ACTOR_SURFACE (surface->role); |