mirror of
https://github.com/brl/mutter.git
synced 2024-11-22 16:10:41 -05:00
surface-actor: Add NULL check for stage
In some cases Wayland surface actors are not decendents of the stage, notably subsurfaces without a parent surface. The code changes in the mentioned commits dropped the previously existing check for that - readd it. Fixes:627ab24721
(surface-actor: Add meta_surface_actor_schedule_update()) Fixes:7eb99ddef7
(wayland/surface: Schedule updates in the context of the surface actor) Closes: https://gitlab.gnome.org/GNOME/mutter/-/issues/3323 Part-of: <https://gitlab.gnome.org/GNOME/mutter/-/merge_requests/3633>
This commit is contained in:
parent
d5032449bb
commit
e8b43d3b1b
@ -405,8 +405,11 @@ meta_surface_actor_get_texture (MetaSurfaceActor *self)
|
|||||||
void
|
void
|
||||||
meta_surface_actor_schedule_update (MetaSurfaceActor *self)
|
meta_surface_actor_schedule_update (MetaSurfaceActor *self)
|
||||||
{
|
{
|
||||||
ClutterStage *stage =
|
ClutterStage *stage;
|
||||||
CLUTTER_STAGE (clutter_actor_get_stage (CLUTTER_ACTOR (self)));
|
|
||||||
|
stage = CLUTTER_STAGE (clutter_actor_get_stage (CLUTTER_ACTOR (self)));
|
||||||
|
if (!stage)
|
||||||
|
return;
|
||||||
|
|
||||||
clutter_stage_schedule_update (stage);
|
clutter_stage_schedule_update (stage);
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user