Open cjc7373 opened 10 months ago
I recommend that you implement this instead of kwin-idle https://wayland.app/protocols/ext-idle-notify-v1 You could copy from https://github.com/2e3s/awatcher/blob/main/watchers/src/watchers/wl_ext_idle_notify.rs
Sure, if this PR can be accepted, I definitely want to implement that.
This is a major refactor and not finished yet.. But it's workable under sway and I think it's time to get some feedback.
Basically we need to implement a
Dispatch
trait for every event. There's macrodelegate_noop
to ignore irrelevant events.Also wayland-protocols-wlr and wayland-protocols-plasma crate offer the interfaces we need, so there's no need to generate some bindings manually.