Fix crash in nested wayland backend on startup

In a recent refactor screens are only created when our xdg_surface has
been acked. This leaves a window where m_waylandCursor is null and
events are still being processed.
This commit is contained in:
David Edmundson 2021-08-13 12:23:55 +01:00
parent 2a04a3d42c
commit 46980c0bb4

View file

@ -569,7 +569,7 @@ bool WaylandBackend::initialize()
}
connect(Cursors::self(), &Cursors::currentCursorChanged, this,
[this] {
if (!m_seat) {
if (!m_seat || !m_waylandCursor) {
return;
}
m_waylandCursor->installImage();