scene: Check waylandServer() is nullptr in filterAcceptsWindow

This fixes compositing on X11.
This commit is contained in:
Fushan Wen 2022-04-14 14:29:38 +08:00
parent 16b7f5729a
commit 7f39bb1b33
No known key found for this signature in database
GPG key ID: 2E48D1487C91DCAA

View file

@ -883,7 +883,7 @@ ScreenLockerFilter::~ScreenLockerFilter() = default;
bool ScreenLockerFilter::filterAcceptsWindow(KWin::Toplevel *w) const
{
return !waylandServer()->isScreenLocked() || (w->isLockScreen() || w->isInputMethod());
return !waylandServer() || !waylandServer()->isScreenLocked() || (w->isLockScreen() || w->isInputMethod());
}
} // namespace