PresentEffect: Fixed the position of the window close button when the mouse hovers.
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:
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:
Edited by Fang Tan