diff --git a/src/plasmaquick/dialog.cpp b/src/plasmaquick/dialog.cpp index 761821efd..d6f1471b5 100644 --- a/src/plasmaquick/dialog.cpp +++ b/src/plasmaquick/dialog.cpp @@ -1197,9 +1197,7 @@ void Dialog::showEvent(QShowEvent *event) bool Dialog::event(QEvent *event) { if (event->type() == QEvent::Expose) { - auto ee = static_cast(event); - - if (!KWindowSystem::isPlatformWayland() || ee->region().isNull()) { + if (!KWindowSystem::isPlatformWayland() || !isExposed()) { return QQuickWindow::event(event); }