Allow configuring LSM to setup wayland screen name via WAYLAND_DISPLAY_LSM#3
Open
ericblade wants to merge 2 commits into
Open
Allow configuring LSM to setup wayland screen name via WAYLAND_DISPLAY_LSM#3ericblade wants to merge 2 commits into
ericblade wants to merge 2 commits into
Conversation
…Y_LSM - This allows using Wayland as luna-surfacemanager's output, so lsm becomes a forwarding or nested compositor. You can set XDG_RUNTIME_DIR=/path/to/output-compositor/xdg/run WAYLAND_DISPLAY="wayland-0" # name of display on output compositor WAYLAND_DISPLAY_LSM="wayland-1" # name of display for LSM apps WEBOS_COMPOSITOR_PLATFORM=wayland ... then run surface-manager, and surface-manager's output will appear in the host wayland compositor. webOS apps will need to have WAYLAND_DISPLAY set to wayland-1 or they will end up directly on the host compositor, instead of inside LSM. - Move checkDaemonFiles into constructor, replacing the setSocketName() call, as setSocketName() would default to using WAYLAND_DISPLAY, which would then crash because the host compositor is already using that. - Check for null on QGuiApplication::primaryScreen() before calling name(), so that the application will crash with a proper fatal error from Qt when no screens are found
Author
|
Switching this to draft, as although I had it working in a test build, once I built a complete image, it no longer worked, so I'm not sure if I messed up something in this patch or if i'm missing some other piece of what I built (I think it's hardware driver related, but i'm leaving this patch as draft until i prove that out) |
Author
|
Confirming that this functions. My issue previously was with some bad mesa configuration selection. Thank you for your consideration. |
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.
This allows using Wayland as luna-surfacemanager's output, so lsm becomes a forwarding or nested compositor.
You can set
... then run surface-manager, and surface-manager's output will appear in the host wayland compositor. webOS apps will need to have WAYLAND_DISPLAY set to wayland-1 or they will end up directly on the host compositor, instead of inside LSM.