Some WinManager refactoring, take workspace into account for "Inspect under mouse"
requested to merge michaelweghorn/accerciser:michaelweghorn/take_workspace_and_window_size_into_account into master
- 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-basedWinManager
- 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