From e90fc1f8e1113f8092b9afa1097e3dc1445a6b20 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Martin=20Gr=C3=A4=C3=9Flin?= Date: Tue, 18 Aug 2015 08:18:36 +0200 Subject: [PATCH] [wayland] Drop QtWayland specific BypassWindowManagerHint workaround No longer needed as our internal QPA is able to show windows with BypassWindowManagerHint set. --- main_wayland.cpp | 10 ---------- 1 file changed, 10 deletions(-) diff --git a/main_wayland.cpp b/main_wayland.cpp index 9b7290bd6d..1d4e1a3d61 100644 --- a/main_wayland.cpp +++ b/main_wayland.cpp @@ -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); }