diff --git a/main_wayland.cpp b/main_wayland.cpp --- a/main_wayland.cpp +++ b/main_wayland.cpp @@ -118,7 +118,10 @@ if (QStyle *s = style()) { s->unpolish(this); } - waylandServer()->terminateClientConnections(); + //terminate connections after QGuiApplication::~QGuiApplication + connect(this, &QObject::destroyed, [=]() { + waylandServer()->terminateClientConnections(); + }); destroyCompositor(); }