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
1 changed files with 4 additions and 0 deletions
|
@ -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 a new issue