From cd0430303b7009d034228668592635be0521b08e Mon Sep 17 00:00:00 2001 From: Vlad Zahorodnii Date: Tue, 26 Apr 2022 15:25:38 +0300 Subject: [PATCH] Fix potential null dereference in LockScreenFilter input()->findToplevel() may return null. --- src/input.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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); }