Update for wlroots 0.18#27
Merged
alexbakker merged 8 commits intoswaywm:masterfrom May 23, 2025
Merged
Conversation
Add RenderPass API Add Display argument to NewOutputLayout and CreateGlobal Add relative direction to NotifyPointerAxis Remove Vendor/Product from InputDevice, since it's not supported anymore Add RelativeDirection enum Switch values of AxisSource to use wl_pointer_axis enum Add BeginRenderPass to replace AttachRender Switch RenderSoftwareCursors to use wlr_output_add_software_cursors_to_render_pass Switch pkg-config package name for wlroots to wlroots-0.18
Use `buildGoModule` Avoid using `with` and `rec` as they are no longer best practice Remove usage of gomod2nix as it is no longer needed Update all dependencies Apply formatting with nixfmt
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Things have fallen a bit out of date. I hope it isn't a big problem that I've grouped a lot of stuff into this PR. To try to make it a bit cleaner it is at least broken up into commits.
The broad strokes of this are:
handleOuptuDestroy->handleOutputDestroy,PrefferedMode->PreferredMode)wlr_output_*and the non-renderpass APIs inwlr_renderer_*RenderPassAPIDisplayargument toNewOutputLayoutandCreateGlobalNotifyPointerAxisVendor/ProductfromInputDevice, since it's not supported anymoreRelativeDirectionenumAxisSourceto usewl_pointer_axisenumBeginRenderPassto replaceAttachRenderRenderSoftwareCursorsto usewlr_output_add_software_cursors_to_render_passbuildGoModulewithandrecas they are no longer best practicegomod2nixas it is no longer needednixfmtThere are a few minor things. The GeoBox API wrapper contained a pointer field that was only read and never written to, so it was removed, since the two usages of it were broken. Also, there are a lot of things that could be cleaned up or improved in the future. However, I was able to get this working and run applications in it, so hopefully pending any serious issues we can get this moving :)