1
mirror of https://invent.kde.org/network/falkon.git synced 2024-11-11 09:32:12 +01:00

LocationCompleterView: Fix window type on Wayland

Closes #2236
This commit is contained in:
David Rosca 2017-02-26 20:27:37 +01:00
parent 8501275ee4
commit b95a8be600

View File

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