2e3s / awatcher

Activity and idle watchers
Mozilla Public License 2.0
126 stars 4 forks source link

Support kwin6 updated APIs #10

Closed moodyhunter closed 6 months ago

moodyhunter commented 8 months ago

This is by no means a compatible change (with Kwin 5). However, I think it's still reasonable to have this PR opened, just in case someone finds it useful.

2e3s commented 8 months ago

Hello! Thank you for your update, I've just found a discussion on the topic. Incompatibility is not an issue since we can know the current KWin version, e.g. qdbus org.kde.KWin /KWin supportInformation or $KDE_SESSION_VERSION. I wonder if KDE did any movement towards Wayland's toplevel protocol in 6.

KDE 6 is still unreleased though, so probably it has no users yet hence not very urgent.

peterhoeg commented 6 months ago

plasma 6 is out now and while awatcher runs with this patch, I'm seeing a lot of these errors:

[2024-03-06 10:30:44.833195 ERROR watchers::watchers] Error on idle iteration: Failed to send heartbeat
[2024-03-06 10:30:53.444834 ERROR watchers::watchers] Error on active window iteration: Failed to send heartbeat for active window
2e3s commented 6 months ago

Thanks again, I'll make some compatibility adjustments and roll out a minor release soon.