mirror of
https://github.com/brl/mutter.git
synced 2024-11-25 01:20:42 -05:00
clutter/actor: Fix pick when actor is not allocated
When selecting the pick regions for an actor we were not considering whether the actor was allocated and that was causing issues where the preferred width/height of the actor was used when deciding whether the actor should be considered as a pick target. Check if the actor has a valid allocation, in addition to being mapped and being in pick mode, in clutter_actor_should_pick_paint(). https://gitlab.gnome.org/GNOME/mutter/-/merge_requests/1169
This commit is contained in:
parent
f98ca7683c
commit
902302a174
@ -2410,6 +2410,7 @@ clutter_actor_should_pick_paint (ClutterActor *self)
|
||||
g_return_val_if_fail (CLUTTER_IS_ACTOR (self), FALSE);
|
||||
|
||||
if (CLUTTER_ACTOR_IS_MAPPED (self) &&
|
||||
clutter_actor_has_allocation (self) &&
|
||||
(_clutter_context_get_pick_mode () == CLUTTER_PICK_ALL ||
|
||||
CLUTTER_ACTOR_IS_REACTIVE (self)))
|
||||
return TRUE;
|
||||
|
Loading…
Reference in New Issue
Block a user