diff --git a/krunner/view.cpp b/krunner/view.cpp --- a/krunner/view.cpp +++ b/krunner/view.cpp @@ -230,7 +230,13 @@ if (m_plasmaShell && event->type() == QEvent::Expose) { using namespace KWayland::Client; - if (!m_plasmaShellSurface) { + auto ee = static_cast(event); + + if (ee->region().isNull()) { + return retval; + } + + if (!m_plasmaShellSurface && isVisible()) { Surface *s = Surface::fromWindow(this); if (!s) { return retval;