On wayland it would immediately disappear, now it doesn't anymore.
Details
Details
- Reviewers
davidedmundson - Group Reviewers
Frameworks - Commits
- R284:fbb5609001ab: Fix KCompletionBox on wayland
Tried kcompletionuitest on xcb and wayland
Diff Detail
Diff Detail
- Repository
- R284 KCompletion
- Lint
Automatic diff as part of commit; lint not applicable. - Unit
Automatic diff as part of commit; unit tests not applicable.
Comment Actions
It's a bit cheeky, but it's the only soltuion that doesn't require an invasive patch inverting the way input is eventFiltered.
Comment Actions
Why not
static const auto flags = qGuiApp->platformName() == QLatin1String("wayland") ? Qt::WindowFlags(Qt::ToolTip | Qt::FramelessWindowHint | Qt::BypassWindowManagerHint) : Qt::WindowFlags(Qt::Window | Qt::FramelessWindowHint | Qt::BypassWindowManagerHint); q->setWindowFlags(flags);
It's not need to check in every completion construction.