-
Notifications
You must be signed in to change notification settings - Fork 175
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
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 |
FYI, version 2 just got merged. This probably doesn't need to be a draft anymore. |
I tried compiling the latest Niri source against this fork of Smithay and got several compile errors, starting with this:
My guess is that your fork needs to be rebased to be based on the latest Smithay source. ETA: I was able to compile Niri against my fork of Smithay, which is basically your ext-idle-notify updates applied to the current Smithay code. So that confirms that it's just a rebasing issue. |
d02b6c1
to
9e8691e
Compare
Rebased on top of Smithay master as well as wp master. This remains in draft, awaiting the next Wayland protocols release. |
FYI, the new version of wayland-protocols has just been released: https://lists.freedesktop.org/archives/wayland-devel/2025-January/043966.html Not sure how soon this will affect things, since I gather that wayland-rs will need updating. |
Smithay/wayland-rs#780 updates wayland-rs to wayland-protocols 1.40. I'm still wondering when |
|
9e8691e
to
ad2c423
Compare
Thanks! This is ready now. |
Any idea what the merge conflicts are? Offhand, I can't see them for myself. |
ad2c423
to
e6a630c
Compare
e6a630c
to
5825e9c
Compare
Rebased |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM!
draft as version 2 is still in MR phase: https://gitlab.freedesktop.org/wayland/wayland-protocols/-/merge_requests/367