From 281919fc4d5af74b6cc82ae7842c2d699c767ed7 Mon Sep 17 00:00:00 2001 From: David Rosca Date: Sun, 2 Apr 2017 16:35:38 +0200 Subject: [PATCH] LocationCompleterView: Use custom window type only on X11 Closes #2287 --- src/lib/navigation/completer/locationcompleterview.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/lib/navigation/completer/locationcompleterview.cpp b/src/lib/navigation/completer/locationcompleterview.cpp index 73d64b900..645463994 100644 --- a/src/lib/navigation/completer/locationcompleterview.cpp +++ b/src/lib/navigation/completer/locationcompleterview.cpp @@ -31,11 +31,15 @@ LocationCompleterView::LocationCompleterView() setAttribute(Qt::WA_ShowWithoutActivating); setAttribute(Qt::WA_X11NetWmWindowTypeCombo); +#ifdef Q_OS_LINUX if (qApp->platformName() == QLatin1String("wayland")) { setWindowFlags(Qt::Popup); } else { setWindowFlags(Qt::Window | Qt::FramelessWindowHint | Qt::BypassWindowManagerHint); } +#else + setWindowFlags(Qt::Popup); +#endif setUniformItemSizes(true); setEditTriggers(QAbstractItemView::NoEditTriggers);