[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:
Martin Gräßlin 2015-08-18 08:18:36 +02:00
parent e0103b15b7
commit e90fc1f8e1

View file

@ -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);
}