1
mirror of https://invent.kde.org/network/falkon.git synced 2024-09-21 17:52:10 +02:00

LocationCompleterView: Use custom window type only on X11

Closes #2287
This commit is contained in:
David Rosca 2017-04-02 16:35:38 +02:00
parent dd6c76f28b
commit 281919fc4d

View File

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