Skip to content

effects/overview: Show windows in the hovered virtual desktop

Fushan Wen requested to merge (removed):overview-hover-switch into master

It's inconvenient if a user only wants to know what windows exist in a virtual desktop, but is disappointed after hovering on the virtual desktop just to find that nothing happens.

This commit adds a timer to fix the problem. The timer is started when the mouse hovers on a virtual desktop item, and is stopped when the mouse leaves the zone or a window is dragged into the zone.

When the timer is triggered, a new property named hoveredDesktop is assigned to the hovered virtual desktop, and the model of WindowHeap is updated to show windows in the hovered virtual desktop.

hover-switch

Edited by Fushan Wen

Merge request reports

Loading