[wayland] Drop QtWayland specific BypassWindowManagerHint workaround
No longer needed as our internal QPA is able to show windows with BypassWindowManagerHint set.
This commit is contained in:
parent
e0103b15b7
commit
e90fc1f8e1
1 changed files with 0 additions and 10 deletions
|
@ -255,16 +255,6 @@ bool ApplicationWayland::notify(QObject *o, QEvent *e)
|
|||
// as it waits for the callback of the last frame
|
||||
waylandServer()->dispatch();
|
||||
}
|
||||
if (e->type() == QEvent::Show) {
|
||||
// on QtWayland windows with X11BypassWindowManagerHint are not shown, thus we need to remove it
|
||||
// as the flag is interpreted only before the PlatformWindow is created we need to destroy the window first
|
||||
if (w->flags() & Qt::X11BypassWindowManagerHint) {
|
||||
w->setFlags(w->flags() & ~Qt::X11BypassWindowManagerHint);
|
||||
w->destroy();
|
||||
w->show();
|
||||
return false;
|
||||
}
|
||||
}
|
||||
}
|
||||
return Application::notify(o, e);
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue