diff --git a/src/input.cpp b/src/input.cpp index 4a35e45eda..e3c8d80fed 100644 --- a/src/input.cpp +++ b/src/input.cpp @@ -351,7 +351,7 @@ public: } auto window = input()->findToplevel(event->globalPos()); - if (window->isClient() && window->isLockScreen()) { + if (window && window->isClient() && window->isLockScreen()) { workspace()->activateWindow(window); }