Skip to content

Restrict SimpleGlobal bindings to our max API version - #406

Merged
wash2 merged 1 commit into
Smithay:v0.16.xfrom
danieldg:stable-16
Sep 18, 2023
Merged

wash2 merged 1 commit into
Smithay:v0.16.xfrom
danieldg:stable-16

Conversation

@danieldg

Copy link
Copy Markdown
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

kchibisov commented Sep 16, 2023 •

Copy link
Copy Markdown
Member

@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
Copy Markdown
Member

The CI failures are not relevant if it matters.

Comment thread src/environment.rs Resolved
@wash2

wash2 commented Sep 18, 2023

Copy link
Copy Markdown
Member

Should we increment the version to 0.16.1 in this PR?

@kchibisov

Copy link
Copy Markdown
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

cole-h commented Sep 19, 2023

Copy link
Copy Markdown
Contributor

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

kchibisov commented Sep 19, 2023 •

Copy link
Copy Markdown
Member

@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

wash2 commented Sep 19, 2023

Copy link
Copy Markdown
Member

Ok the tag is pushed now

@cole-h

cole-h commented Sep 19, 2023

Copy link
Copy Markdown
Contributor

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