Skip to content

Some WinManager refactoring, take workspace into account for "Inspect under mouse"

  • refactor and unify some WinManager/KWinWinManager methods (i.e. Wnck-based and KWin implementations)
  • improve heuristics to find right window to highlight for KWinWinManager by reusing logic already implemented for Wnck-based WinManager
  • take into account the current workspace/virtual desktop when using the "Inspect under mouse" feature to avoid highlighting accessible from window on other workspace/virtual desktop rather than the one the mouse is actually over

(More details in in the individual commit messages.)

This also simplifies adding new WinManager implementations (like one for GNOME/Mutter) in the future that can reuse more of the existing code now.

Related issue: #41

Merge request reports