-
-
Notifications
You must be signed in to change notification settings - Fork 816
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
webgpu: Window Background Opacity not working on Hyprland in wayland mode #3589
Comments
Does it work if you use a different wayland compositor? |
does not work for me on sway also |
Can you try with |
|
as the error suggests, you need to quote that properly when using the CLI: |
sorry my bad. Yes it works now |
Can you run: From looking through gfx-rs/wgpu#687 it sounds like different vulkan drivers don't always correctly report their capabilities. On my linux system, which is also using radv, I see: $ vulkaninfo | grep -i COMPOS
supportedCompositeAlpha: count = 2
COMPOSITE_ALPHA_OPAQUE_BIT_KHR
COMPOSITE_ALPHA_INHERIT_BIT_KHR
supportedCompositeAlpha: count = 2
COMPOSITE_ALPHA_OPAQUE_BIT_KHR
COMPOSITE_ALPHA_INHERIT_BIT_KHR but for wgpu to enable support for transparency, we want to see |
vulkaninfo | grep -i COMPOS
supportedCompositeAlpha: count = 2
COMPOSITE_ALPHA_OPAQUE_BIT_KHR
COMPOSITE_ALPHA_INHERIT_BIT_KHR
supportedCompositeAlpha: count = 1
COMPOSITE_ALPHA_OPAQUE_BIT_KHR
supportedCompositeAlpha: count = 2
COMPOSITE_ALPHA_OPAQUE_BIT_KHR
COMPOSITE_ALPHA_INHERIT_BIT_KHR
supportedCompositeAlpha: count = 2
COMPOSITE_ALPHA_OPAQUE_BIT_KHR
COMPOSITE_ALPHA_PRE_MULTIPLIED_BIT_KHR
supportedCompositeAlpha: count = 1
COMPOSITE_ALPHA_INHERIT_BIT_KHR
supportedCompositeAlpha: count = 2
COMPOSITE_ALPHA_OPAQUE_BIT_KHR
COMPOSITE_ALPHA_PRE_MULTIPLIED_BIT_KHR |
If it is of any help, I have a optimus laptop, maybe webgpu is not supported on it |
We prefer post-multipled, but if the implementation doesn't support that, pretend that we are pre-multiplied. refs: #3589
It typically takes about an hour before commits are available as nightly builds for all platforms. Linux builds are the fastest to build and are often available within about 20 minutes. Windows and macOS builds take a bit longer. Please take a few moments to try out the fix and let me know how that works out. You can find the nightly downloads for your system in the wezterm installation docs. If you prefer to use packages provided by your distribution or package manager of choice and don't want to replace that with a nightly download, keep in mind that you can download portable packages (eg: a If you are eager and can build from source then you may be able to try this out more quickly. |
Yup it is fixed for me. Thank you |
I'm going to lock this issue because it has been closed for 30 days ⏳. This helps our maintainers find and focus on the active issues. If you have found a problem that seems similar to this, please open a new issue and complete the issue template so we can capture all the details necessary to investigate further. |
What Operating System(s) are you seeing this problem on?
Linux Wayland
Which Wayland compositor or X11 Window manager(s) are you using?
Hyprland
WezTerm version
20230421-075330-e0a92c73
Did you try the latest nightly build to see if the issue is better (or worse!) than your current version?
Yes, and I updated the version box above to show the version of the nightly that I tried
Describe the bug
window_background_opacity
config option does not seem to work on waylandTo Reproduce
launch wezterm with the command -
wezterm --config window_background_opacity=0
and then launch it under Xwayland with -
env -u WAYLAND_DISPLAY wezterm --config window_background_opacity=0
Configuration
Might not be relevant but here it is nonetheless -
Expected Behavior
As shown in the video, i expect the opacity being set in wayland, as it does under XWayland
Logs
wezterm version: 20230421-075330-e0a92c73 x86_64-unknown-linux-gnu
Window Environment: Wayland
WebGPU: name=AMD Radeon Graphics (RADV RENOIR), device_type=IntegratedGpu, backend=Vulkan, driver=radv, driver_info=Mesa 23.0.2, vendor=4098, device=5686
Enter lua statements or expressions and hit Enter.
Anything else?
With my config-
Kooha-2023-04-22-10-15-35.webm
Without any config-
Kooha-2023-04-22-10-36-02.webm
The text was updated successfully, but these errors were encountered: