From 8b8aaedadbcf08245701389329bd973b47b864ac Mon Sep 17 00:00:00 2001 From: Sergei Ilinykh Date: Sun, 24 Mar 2024 20:35:10 +0300 Subject: [PATCH] Fixed crash on wayland --- src/x11windowsystem.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/x11windowsystem.cpp b/src/x11windowsystem.cpp index 7687ff0ed..ac18f61a6 100644 --- a/src/x11windowsystem.cpp +++ b/src/x11windowsystem.cpp @@ -161,6 +161,10 @@ bool X11WindowSystem::currentDesktop(long *desktop) X11WindowSystem::X11WindowSystem() { + if (!isPlatformX11()) { + return; + } + const int atomsCount = 10; const char *names[atomsCount] = { "_NET_CLIENT_LIST_STACKING", "_NET_FRAME_EXTENTS",