From b95a8be6002d2c1141ef15edf847f963689ece33 Mon Sep 17 00:00:00 2001 From: David Rosca Date: Sun, 26 Feb 2017 20:27:37 +0100 Subject: [PATCH] LocationCompleterView: Fix window type on Wayland Closes #2236 --- src/lib/navigation/completer/locationcompleterview.cpp | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/src/lib/navigation/completer/locationcompleterview.cpp b/src/lib/navigation/completer/locationcompleterview.cpp index aa707fcb2..73d64b900 100644 --- a/src/lib/navigation/completer/locationcompleterview.cpp +++ b/src/lib/navigation/completer/locationcompleterview.cpp @@ -30,7 +30,12 @@ LocationCompleterView::LocationCompleterView() { setAttribute(Qt::WA_ShowWithoutActivating); setAttribute(Qt::WA_X11NetWmWindowTypeCombo); - setWindowFlags(Qt::Window | Qt::FramelessWindowHint | Qt::BypassWindowManagerHint); + + if (qApp->platformName() == QLatin1String("wayland")) { + setWindowFlags(Qt::Popup); + } else { + setWindowFlags(Qt::Window | Qt::FramelessWindowHint | Qt::BypassWindowManagerHint); + } setUniformItemSizes(true); setEditTriggers(QAbstractItemView::NoEditTriggers);