Skip to content

Fix always active on wayland

Dominik Waurenschk requested to merge dominikw/rsibreak:wayland_idle into master

On Wayland KIdleTime::instance()->idleTime() always returns 0, making RSIBreak think the user is always active. This is fixed in this MR.

The changes apply to X as well, but my tests show no noticable difference on X.

If RSIBreak is started as an XWayland application, it will only detect input to XWayland applications. If the user is using a native Wayland application, RSIBreak will think the user is idle.

If RSIBreak is started as a native Wayland application (QT_QPA_PLATFORM=wayland), there is about a 5 second delay between user stopping inputs, and idle being reported.
There is a MR to fix this delay: plasma/kwayland-server!133 (merged)

BUG: 422033

Edited by Dominik Waurenschk

Merge request reports