mirror of
https://github.com/brl/mutter.git
synced 2025-02-25 09:14:11 +00:00
wayland/actor-surface: Always consider unmapped actors not on output
This avoids using bogus geometric values from an unmapped actor to determine whether an actor is on a logical monitor or not. This would happen when committing to a subsurface of a yet to be mapped toplevel. https://gitlab.gnome.org/GNOME/mutter/merge_requests/961 (cherry picked from commit 6d15231f10a22ee96f32dee9df8db8296c73376f)
This commit is contained in:
parent
fd7d0fb339
commit
a9a0110818
@ -292,6 +292,9 @@ meta_wayland_actor_surface_is_on_logical_monitor (MetaWaylandSurfaceRole *surfac
|
|||||||
MetaRectangle logical_monitor_layout;
|
MetaRectangle logical_monitor_layout;
|
||||||
gboolean is_on_monitor;
|
gboolean is_on_monitor;
|
||||||
|
|
||||||
|
if (!clutter_actor_is_mapped (actor))
|
||||||
|
return FALSE;
|
||||||
|
|
||||||
clutter_actor_get_transformed_position (actor, &x, &y);
|
clutter_actor_get_transformed_position (actor, &x, &y);
|
||||||
clutter_actor_get_transformed_size (actor, &width, &height);
|
clutter_actor_get_transformed_size (actor, &width, &height);
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user