scene: Check waylandServer()
is nullptr in filterAcceptsWindow
This fixes compositing on X11.
This commit is contained in:
parent
16b7f5729a
commit
7f39bb1b33
1 changed files with 1 additions and 1 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue