diff --git a/main_wayland.cpp b/main_wayland.cpp index 45a4a66474..d465073257 100644 --- a/main_wayland.cpp +++ b/main_wayland.cpp @@ -75,6 +75,10 @@ ApplicationWayland::ApplicationWayland(int &argc, char **argv) ApplicationWayland::~ApplicationWayland() { + if (!waylandServer()) { + return; + } + waylandServer()->backend()->setOutputsEnabled(false); destroyWorkspace(); waylandServer()->dispatch();