waylandserver: don't emit windowRemoved if it's not been added yet
This can happen when a client destroys the window before it ever got ready for painting
This commit is contained in:
parent
574b51f095
commit
fa538edc74
1 changed files with 3 additions and 1 deletions
|
@ -687,7 +687,9 @@ void WaylandServer::destroyInputMethodConnection()
|
||||||
void WaylandServer::removeWindow(Window *c)
|
void WaylandServer::removeWindow(Window *c)
|
||||||
{
|
{
|
||||||
m_windows.removeAll(c);
|
m_windows.removeAll(c);
|
||||||
|
if (c->readyForPainting()) {
|
||||||
Q_EMIT windowRemoved(c);
|
Q_EMIT windowRemoved(c);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
static Window *findWindowInList(const QList<Window *> &windows, const KWaylandServer::SurfaceInterface *surface)
|
static Window *findWindowInList(const QList<Window *> &windows, const KWaylandServer::SurfaceInterface *surface)
|
||||||
|
|
Loading…
Reference in a new issue