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

fix(wlr/taskbar): do not bind to unsupported protocol versions #898

Merged
merged 1 commit into from
Oct 25, 2020

Conversation

alebastr
Copy link
Contributor

@alebastr alebastr commented Oct 25, 2020

It's not allowed to bind to a higher version of a wayland protocol than supported by the client. Binding wlr-foreign-toplevel-manager-v1 v3 to a generated code for v2 causes errors in libwayland due to a missing handler for zwlr_foreign_toplevel_handle_v1.parent event.

This PR just allows to run waybar on the compositors with newer protocols. Someone else will have to update the protocol file, read swaywm/wlr-protocols#52 and add zwlr_foreign_toplevel_handle_v1.parent event support for detecting window stacks and allowing to ignore child windows in the taskbar. Wayfire git master already supports sending the event and could be used for testing.

Note: I'm using interface version instead of the constant 2 because I'm assuming that whoever updates the protocol file would add a handler for the parent event in the same PR. Doing only the former would make waybar crash again.

Fixes #897

It's not allowed to bind to a higher version of a wayland protocol than
supported by the client. Binding wlr-foreign-toplevel-manager-v1 v3 to
a generated code for v2 causes errors in libwayland due to a missing
handler for `zwlr_foreign_toplevel_handle_v1.parent` event.
@Alexays
Copy link
Owner

Alexays commented Oct 25, 2020

Thanks for the fix Aleksei!

@Alexays Alexays merged commit 48a8dbe into Alexays:master Oct 25, 2020
@bluebyt
Copy link

bluebyt commented Oct 25, 2020

Everything solved! Thanks that was fast!

@alebastr alebastr deleted the fix-globals-versions branch October 26, 2020 15:21
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.

Waybar doesn't start anymore
3 participants