Verified Commit 7f39bb1b authored by Fushan Wen's avatar Fushan Wen
Browse files

scene: Check `waylandServer()` is nullptr in filterAcceptsWindow

This fixes compositing on X11.
parent 16b7f572
Pipeline #163949 passed with stage
in 14 minutes and 54 seconds
......@@ -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
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment