Commit b5f401e8 authored by Xaver Hugl's avatar Xaver Hugl
Browse files

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

(cherry picked from commit fa538edc)
parent 73747759
Pipeline #233091 failed with stage
in 19 minutes and 20 seconds
......@@ -687,7 +687,9 @@ void WaylandServer::destroyInputMethodConnection()
void WaylandServer::removeWindow(Window *c)
Q_EMIT windowRemoved(c);
if (c->readyForPainting()) {
Q_EMIT windowRemoved(c);
static Window *findWindowInList(const QList<Window *> &windows, const KWaylandServer::SurfaceInterface *surface)
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment