Skip to content
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

Restrict SimpleGlobal bindings to our max API version #406

Merged
merged 1 commit into from
Sep 18, 2023

Conversation

danieldg
Copy link
Contributor

This is a partial fix for the way SimpleGlobal binds to the latest version offered by the server instead of the latest version the client understands, which causes errors (usually leading to crashes) when a server actually uses the later version and sends an event we don't know about.

This fixes crashes in a number of clients using SCTK-0.16 on compositors supporting the newest wayland surface APIs (to be precise, any that send a preferred_buffer_scale event).

This is a partial fix for the way SimpleGlobal binds to the latest
version offered by the server instead of the latest version the client
understands, which causes errors (usually leading to crashes) when a
server actually uses the later version and sends an event we don't know
about.
@kchibisov
Copy link
Member

kchibisov commented Sep 16, 2023

@wash2 could we make it into patch release on v0.16.x branch? It affects wezterm from what I understood since they haven't updated yet and I'm not sure whether they will.

@kchibisov
Copy link
Member

The CI failures are not relevant if it matters.

@wash2
Copy link
Member

wash2 commented Sep 18, 2023

Should we increment the version to 0.16.1 in this PR?

@kchibisov
Copy link
Member

@wash2 in the separate.

@wash2 wash2 merged commit 5cfd950 into Smithay:v0.16.x Sep 18, 2023
@danieldg danieldg deleted the stable-16 branch September 19, 2023 00:12
@cole-h
Copy link
Contributor

cole-h commented Sep 19, 2023

Just a minor note -- it seems that the 0.16.1 tag was never pushed to this repo (though that version has been published on crates.io and docs.rs successfully).

@kchibisov
Copy link
Member

kchibisov commented Sep 19, 2023

@cole-h good catch.

@wash2 something like that should do it

git tag -s v0.16.1 -m "smithay-client-toolkit version 0.16.1"
git push origin v0.16.x tag v0.16.1

@wash2
Copy link
Member

wash2 commented Sep 19, 2023

Ok the tag is pushed now

@cole-h
Copy link
Contributor

cole-h commented Sep 19, 2023

Cheers, thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants