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

build: drop xwayland option #8165

Merged
merged 1 commit into from
May 21, 2024
Merged

build: drop xwayland option #8165

merged 1 commit into from
May 21, 2024

Conversation

emersion
Copy link
Member

Instead of having a build-time option to enable/disable xwayland support, just use the wlroots build config: enable xwayland in Sway if it was enabled when building wlroots. I don't see any use-case for disabling xwayland in Sway when enabled in wlroots: Sway doesn't pull in any additional dependency (just pulls in dependencies that wlroots already needs). We have a config command to disable xwayland at runtime anyways.

This makes it so xwayland behaves the same way as other features such as libinput backend and session support. This also reduces the build matrix (less combinations of build options).

I think we originally introduced the xwayland option when we didn't have a good way to figure out the wlroots build config from the Sway build system.

@bl4ckb0ne
Copy link
Contributor

Instead of having a build-time option to enable/disable xwayland
support, just use the wlroots build config: enable xwayland in
Sway if it was enabled when building wlroots. I don't see any
use-case for disabling xwayland in Sway when enabled in wlroots:
Sway doesn't pull in any additional dependency (just pulls in
dependencies that wlroots already needs). We have a config command
to disable xwayland at runtime anyways.

This makes it so xwayland behaves the same way as other features
such as libinput backend and session support. This also reduces
the build matrix (less combinations of build options).

I think we originally introduced the xwayland option when we didn't
have a good way to figure out the wlroots build config from the
Sway build system.
Copy link
Contributor

@bl4ckb0ne bl4ckb0ne left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks!

@bl4ckb0ne bl4ckb0ne merged commit 9704152 into master May 21, 2024
3 checks passed
@bl4ckb0ne bl4ckb0ne deleted the drop-xwl-option branch May 21, 2024 15:44
@prometheanfire
Copy link

:( https://wiki.gentoo.org/wiki/Project:Quality_Assurance/Automagic_dependencies#Why_automagic_dependencies_are_wrong (not that I don't understand the desire to reduce the build matrix)

For reference I've kept the explicit xcb dep when using the X flag (along with pulling in wlroots[X] of course).

@emersion
Copy link
Member Author

It's not "automagic": the build system doesn't check whether the dependency is available and then enables/disables the feature based on that. Instead, it forwards the wlroots xcb dependency if wlroots was built with xwayland support.

@prometheanfire
Copy link

ah, makes sense

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

Successfully merging this pull request may close these issues.

None yet

3 participants