Open Callen44 opened 1 year ago
aw-watcher-window-wayland
would need to be mostly rewritten for that, because KDE solution would need a completely separate KWin + DBus handler, also it uses an outdated Wayland crate with a very different interface.
I have implemented it for Wayland + KDE, but I was already aware of the issue and planned the code with independent adapters in mind.
@2e3s Is there any chance that your implementation can be merged into this repo?
@cjc7373 not really, my code is not based on this repository at all, so there is nothing to merge. Also this is "aw-watcher-window-wayland" while I intended to cover all Linux which includes X11, and later other platforms.
Kwin, the KDE window manager and Wayland compositor, clearly does not work with this watcher when using it over Wayland. Further testing should be done to figure out more, I do not have the expertise required to figure out why, but it appears that Kwin does not support any of the protocols specified. As mentioned by @renyuneyun in ActivityWatch/activitywatch#92 it is possible to get the active window from kwin, but a great deal more work would be required to make this happen. It may be a bit different than just adding another protocol though as this dose not seem to be just a protocol that would be required.