-
Notifications
You must be signed in to change notification settings - Fork 124
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-backend: Add getter for global name #735
base: master
Are you sure you want to change the base?
Conversation
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## master #735 +/- ##
==========================================
+ Coverage 73.11% 78.62% +5.51%
==========================================
Files 45 41 -4
Lines 8183 6537 -1646
==========================================
- Hits 5983 5140 -843
+ Misses 2200 1397 -803
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Sentry. |
Given the CI failures, I think this bumps the minimum supported libwayland version. That is not a problem, but the CI scripts should be updated as such, and it should be documented in the changelogs. |
Ok, actually the CI no longer fixes the libwayland version, so there's nothing to update here. But it looks like this change requires a newer version of libwayland-server than is available on the CI environment... |
84bfcc0
to
17e7c7e
Compare
@elinorbgr I bumped Ubuntu version to 24.04, and we are green now |
So outside of the CI coverage tests (which were failing) this function is only needed if it's used, and won't break |
No, it looks like with this anvil fails to link on 22.04 with This seems potentially problematic? I think this will break 22.04 builds of cosmic-panel (which if I recall current is using |
Could maybe this functionality be hidden behind a cargo feature? |
How about we go libinput-rs or gtk-rs like route, and have |
Any ideas how would I feature gate a function in external_library! marco? |
I've just done a wayland-rs release without this for now. Presumably no one needs this functionality in their compositor immediately and it can wait for the next wayland-rs release (but otherwise we can just do another release when we figure out conditional compilation here). Using a feature naming scheme like libinput-rs or gtk-rs sounds good to me. I guess |
That's totally fine, it's more of a future proofing for people that might need |
Right. Protocols like https://gitlab.freedesktop.org/wayland/wayland-protocols/-/merge_requests/40 may also want to make use of this. But it doesn't currently. (And "in a year" may be an optimistic timeline for getting things like that merged upstream...) |
With elinorbgr/dlib#22, it should be possible to just use: #[cfg(feature = "libwayland_1_22")]
fn wl_global_get_name(*mut wl_global, *mut wl_client) -> u32, |
This will be needed for events such as this one: https://wayland.app/protocols/ext-transient-seat-v1#ext_transient_seat_v1:event:ready