mirror of
https://github.com/brl/mutter.git
synced 2024-11-29 19:40:43 -05:00
wayland-stage: Fix a race condition early in init
If Xwayland takes too long to start up, Clutter can choose to draw, at which point we'll crash because the MetaDisplay hasn't initialized yet.
This commit is contained in:
parent
9a6f5e115d
commit
3c0ca1f2af
@ -36,6 +36,10 @@ meta_wayland_stage_paint (ClutterActor *actor)
|
||||
|
||||
CLUTTER_ACTOR_CLASS (meta_wayland_stage_parent_class)->paint (actor);
|
||||
|
||||
/* Early in initialization, we can hit this. */
|
||||
if (!display)
|
||||
return;
|
||||
|
||||
tracker = meta_cursor_tracker_get_for_screen (display->screen);
|
||||
|
||||
if (tracker)
|
||||
|
Loading…
Reference in New Issue
Block a user