Skip to content

PresentEffect: Fixed the position of the window close button when the mouse hovers.

Fang Tan requested to merge tantan/kwin:master into master

When the mouse moves over a window, the geometry of the window will be dynamically modified in several frames, but const QRectF rect(m_motionManager.targetGeometry(m_highlightedWindow)); The value calculated by rect is wrong,The display is as follows: 123 Add a variable and a function for real-time calculation: m_highlightedWindowRect and updateCloseWindowPosition Real time computing geometry of effect window,In this way, the position of the close window can be fixed: 45

Edited by Fang Tan

Merge request reports