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:
parent
2a04a3d42c
commit
46980c0bb4
1 changed files with 1 additions and 1 deletions
|
@ -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();
|
||||
|
|
Loading…
Reference in a new issue