Add a window manager that retrieves screen coords from KWin
Add a KWinWindowManager
that can be used to retrieve
window positions using the KWin window manager/Wayland
compositor that is used on KDE Plasma by default.
For now, the Wnck-based window manager (that doesn't
work on Wayland with native Wayland apps, see
issue #41) remains the default.
Use of the KWin window manager can explicitly
be enabled by setting the environment variable
ACCERCISER_WINDOW_MANAGER=kwin
.
This partly solves #41 by providing an initial solution when KDE Plasma Wayland with KWin is used. More work is needed to make the quick select feature using the mouse position work as well.
A similar approach should generally be possible for GNOME/Mutter.
(More details in the individual commit messages.)