Port from QExposeEvent::region
This gets deprecated in Qt6. See also https://codereview.qt-project.org/c/qt/qtwayland/+/349335
This commit is contained in:
parent
aba253217d
commit
815ddd3fc3
@ -1197,9 +1197,7 @@ void Dialog::showEvent(QShowEvent *event)
|
||||
bool Dialog::event(QEvent *event)
|
||||
{
|
||||
if (event->type() == QEvent::Expose) {
|
||||
auto ee = static_cast<QExposeEvent *>(event);
|
||||
|
||||
if (!KWindowSystem::isPlatformWayland() || ee->region().isNull()) {
|
||||
if (!KWindowSystem::isPlatformWayland() || !isExposed()) {
|
||||
return QQuickWindow::event(event);
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user