-
Notifications
You must be signed in to change notification settings - Fork 171
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
wayland.idle_notify: Update to version 2 #1618
base: master
Are you sure you want to change the base?
Conversation
I found a problem when trying to compile my own fork of Niri against this fork of Smithay:
(FWIW, I'm using a modified PKGBUILD of the niri-git AUR package to do the build of Niri, which I've done before.) My |
This uses patched version of wayland-rs, so perhaps try to include this in niri cargo.toml: [patch.crates-io]
wayland-egl = { git = "https://github.com/PolyMeilex/wayland-rs.git", branch = "ext-idle-notify-2" }
wayland-protocols = { git = "https://github.com/PolyMeilex/wayland-rs.git", branch = "ext-idle-notify-2" }
wayland-protocols-wlr = { git = "https://github.com/PolyMeilex/wayland-rs.git", branch = "ext-idle-notify-2" }
wayland-protocols-misc = { git = "https://github.com/PolyMeilex/wayland-rs.git", branch = "ext-idle-notify-2" }
wayland-server = { git = "https://github.com/PolyMeilex/wayland-rs.git", branch = "ext-idle-notify-2" }
wayland-cursor = { git = "https://github.com/PolyMeilex/wayland-rs.git", branch = "ext-idle-notify-2" }
wayland-client = { git = "https://github.com/PolyMeilex/wayland-rs.git", branch = "ext-idle-notify-2" }
wayland-sys = { git = "https://github.com/PolyMeilex/wayland-rs.git", branch = "ext-idle-notify-2" }
wayland-backend = { git = "https://github.com/PolyMeilex/wayland-rs.git", branch = "ext-idle-notify-2" }
wayland-scanner = { git = "https://github.com/PolyMeilex/wayland-rs.git", branch = "ext-idle-notify-2" } |
Good news and bad news: I got Niri to compile and run, but my fork of Workrave doesn't behave any differently under Niri (e.g., it still does the wrong thing when using mpv to play a video). The fork of Workrave does do the right thing with Sway using my forks of wlroots, though. |
Another bit of bad news. I compiled my fork of cosmic-comp against your fork of Smithay, and my fork of Workrave has the same issues on cosmic-comp as it does on Niri. That would seem to rule out Niri being the problem. |
My bad, forgot to bump the version, this line should have 2 instead of 1 as a first arg: Like so: let global = display.create_global::<D, ExtIdleNotifierV1, _>(2, ()); |
That tracks with my own tests. When I turned tracing on in Workrave, I saw, "Falling back to version of ext-idle-notify-v1 protocol that does not support ignoring idle inhibitors" in the trace logs under both Cosmic and Niri. If you could put the version bump into the ext-idle-notify-2 branch, that would be great. ETA: I just tested both Niri and Cosmic with the version bumped manually in the Smithay source, and fixing the version did the trick. |
Do you plan to add a commit to your ext-idle-notify-2 branch with that version bump? That would insure that this merge request has all the desired changes needed for an updated ext-idle-notify protocol to work. |
d7fa8ae
to
d02b6c1
Compare
Should be good now |
draft as version 2 is still in MR phase: https://gitlab.freedesktop.org/wayland/wayland-protocols/-/merge_requests/367