Refactor idle detection implementation
Idle detection logic is duplicated both in kwin's private kidletime plugin and the idle wayland protocol logic.
In order to reduce code duplication, the idle detector api needs to live in libkwin. This can be addressed by adding an IdleDetector
class in kwin and porting both kidletime plugin and the idle wayland protocol to it.
Most of the work has been already done in https://invent.kde.org/plasma/kwin/-/tree/work/zzag/rewrite-idle-detection, we just need to port the wayland side to it.