[Breeze] [Bug 418891] Hover effect on toolbar buttons not working after dragging window from empty area

Tsu Jan bugzilla_noreply at kde.org
Thu Nov 19 03:48:47 GMT 2020


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

--- Comment #7 from Tsu Jan <tsujan2000 at gmail.com> ---
After a long search in Qt's code and finding no problem in it, I started to get
suspicious of the old dragging code of Breeze/Kvantum/QtCurve and, finally,
succeeded in replacing it with another code structure that solved the problem
in Kvantum, under both X11 and Wayland, and also under all Wayland compositors.

Long story short, with Qt ≥ 5.11, the event filter should be installed on
QWindow, not QWidget, and the mouse press event of QWindow should be "eaten up"
to start the drag (the long story is in the latest git source
'Kvantum/style/drag/windowmanager.cpp').

The same approach can be used with Breeze (and QtCurve).

-- 
You are receiving this mail because:
You are the assignee for the bug.


More information about the Unassigned-bugs mailing list