https://bugs.kde.org/show_bug.cgi?id=379635

--- Comment #44 from Vlad Zahorodnii <vlad.zahorod...@kde.org> ---
Git commit 6689abaffb076515085f2912028a1e3e3deaf36f by Vlad Zahorodnii.
Committed on 02/10/2020 at 16:42.
Pushed by vladz into branch 'master'.

[Shell Corona] Work around popup dismissal bug on Wayland

A popup needs to grab the keyboard and the pointer in order to dismiss
itself when another window is clicked. It works perfectly on X11.

On Wayland though, the compositor is responsible for dismissing popups
if some surface of another application has been clicked. Note that I
said "of another application." If user clicks some surface of the same
application, the compositor won't dismiss the popup.

If the application uses only QtWidgets, then the popup will be closed
as expected in both cases. But if the application uses both Qt Quick and
Qt Widgets, e.g. plasmashell, then the popup won't be dismissed if a
QQuickItem has been clicked.

It is a Qt bug, but for the time being, this change introduces an event
filter that monitors Qt::MouseButtonPress events and when needed closes
the active popup widget. This is a workaround.

M  +95   -0    shell/shellcorona.cpp

https://invent.kde.org/plasma/plasma-workspace/commit/6689abaffb076515085f2912028a1e3e3deaf36f

-- 
You are receiving this mail because:
You are watching all bug changes.

Reply via email to