Fix potential null dereference in LockScreenFilter

input()->findToplevel() may return null.
This commit is contained in:
Vlad Zahorodnii 2022-04-26 15:25:38 +03:00
parent f9b7d5298b
commit cd0430303b

View file

@ -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);
}