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

LocationCompleterView: Only use special window flags on xcb platform

This commit is contained in:
David Rosca 2017-07-19 12:26:26 +02:00
parent 302bffa250
commit 9f266ac1e0

View File

@ -31,15 +31,11 @@ LocationCompleterView::LocationCompleterView()
setAttribute(Qt::WA_ShowWithoutActivating); setAttribute(Qt::WA_ShowWithoutActivating);
setAttribute(Qt::WA_X11NetWmWindowTypeCombo); setAttribute(Qt::WA_X11NetWmWindowTypeCombo);
#ifdef Q_OS_LINUX if (qApp->platformName() == QL1S("xcb")) {
if (qApp->platformName() == QLatin1String("wayland")) {
setWindowFlags(Qt::Popup);
} else {
setWindowFlags(Qt::Window | Qt::FramelessWindowHint | Qt::BypassWindowManagerHint); setWindowFlags(Qt::Window | Qt::FramelessWindowHint | Qt::BypassWindowManagerHint);
} else {
setWindowFlags(Qt::Popup);
} }
#else
setWindowFlags(Qt::Popup);
#endif
setUniformItemSizes(true); setUniformItemSizes(true);
setEditTriggers(QAbstractItemView::NoEditTriggers); setEditTriggers(QAbstractItemView::NoEditTriggers);