-
Notifications
You must be signed in to change notification settings - Fork 78
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
Add support for wlroots v0.18 #313
Conversation
91334fb
to
dd11411
Compare
7eaedf2
to
e61e1d3
Compare
3a01d66
to
e81f66a
Compare
This is now ready. (I haven't figured out the libwayland crash on exit…) |
I have just given it a really quick test. Launched as a nested Wayland compositor, |
The crash happens to me as well when I Ctrl+C the cage process, and in that case |
@emersion |
Oh wow, good catch! Fixed in #354. Weirdly, it doesn't seem like this was the crash I was hitting somehow… And with a breakpoint it does seem like you were correct and the SIGINT handler is called before the output destroy handler… |
Found the root cause: https://gitlab.freedesktop.org/wayland/wayland/-/merge_requests/421 Pushed a workaround. |
0ec8e26
to
28404e8
Compare
The README.md should also be updated now. Otherwise, I observed the following error when displaying the right-click menu of |
Scene-graph will do the right thing without this call.
Instead of waiting for the surface to be mapped before sending a configure event, do it on initial commit. Note, wlroots 0.18 no longer sends automatic configure events on initial commit.
Sending the xdg-decoration mode when the xdg_toplevel_decoration object is created is incorrect: we need to wait for the initial commit.
Workaround for [1]: register a listener for wl_display destroy and avoid calling wl_display_terminate() after. [1]: https://gitlab.freedesktop.org/wayland/wayland/-/merge_requests/421
Both issues should be fixed now. |
@joggee-fr Do you want more time to review/test? Or do you think we can merge this? |
@emersion, sorry I did not have time yet to check it again. Hope I could give it a look in the week-end. |
Cool, no problem. |
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.
No more error on popup display. LGTM.
Thank you! |
Upstream breaking changes: https://gitlab.freedesktop.org/wlroots/wlroots/-/releases/0.18.0
TODO: