Opacity Issues, Primary window remains solid while "New Window" is transparent
What Operating System(s) are you seeing this problem on?
Windows
Which Wayland compositor or X11 Window manager(s) are you using?
- WezTerm version:
20240203-110809-5046fc22(tested with nightly aswell) - OS: Windows 11 (Shadow PC Environment)
WezTerm version
20240203-110809-5046fc22
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
[Windows] Opacity Issues, Primary window remains solid while "New Window" is transparent
Describe the bug
On Windows 11 (running in a Shadow PC / Virtual environment with an NVIDIA RTX 2070 Super), the initial WezTerm window launched from the Start Menu or CLI remains completely opaque, regardless of the window_background_opacity setting. However, any "New Window" spawned from that primary window (via ShowLauncher or spawn_window) correctly applies transparency.
To Reproduce
To Reproduce
- Set
config.window_background_opacity = 0.5in.wezterm.lua. - Launch WezTerm. The window is solid/opaque.
- Open the launcher (
Alt+L) and select "New Window. Launches the default program into a new window". - The new window is transparent, while the first remains solid.
Launched via StartMenu Shortcut, no opacity:
Launched using the launcher
The new Window has proper transparency:
Configuration
Configuration
local wezterm = require 'wezterm'
local config = wezterm.config_builder()
config.window_background_opacity = 0.5
config.front_end = "OpenGL" -- Also tested with WebGpu and Software
return config
Expected Behavior
Expected Behavior
The primary window should respect the background opacity setting and render with transparency upon initialization.
Environment
- WezTerm version:
20240203-110809-5046fc22(tested with nightly aswell) - OS: Windows 11 (Shadow PC Environment)
- GPU: NVIDIA GeForce RTX 2070 SUPER
- Driver Version:
32.0.15.9186(NVIDIA 591.86)
Logs
Debug Overlay wezterm version: 20260117-154428-05343b38 x86_64-pc-windows-msvc Window Environment: Windows Lua Version: Lua 5.4 OpenGL: NVIDIA GeForce RTX 2070 SUPER/PCIe/SSE2 4.5.0 NVIDIA 591.86 Enter lua statements or expressions and hit Enter. Press ESC or CTRL-D to exit
Anything else?
Additional Context
- Process Elevation: Verified that the process is NOT running as Administrator (which can sometimes block DWM effects).
- Rendering Backends: Tested
WebGpu,OpenGL, andSoftware. The results were consistent: the primary window fails to initialize alpha composition while child windows succeed. - Imaging: Setting
window_background_imagerenders the image correctly on the main window, but the background behind it remains solid black instead of transparent. - Windows Features: Tested with and without
win32_system_backdrop(Acrylic/Mica). - Diagnostics:
debug-show-graphics-infoshows identical GPU/Driver information for both windows. No DWM or composition initialization errors are recorded in theShowDebugOverlaylogs. - Observation: This appears to be a specific initialization failure in the primary process, potentially interacting with how Windows handles the initial window of a GPU-accelerated application in a streaming/virtualized session.
Hi, I also had this issue. I saw a comment on reddit about this that helped me solve it:
Go to the Nvidia control panel > Manage 3d Settings, select the program settings tab, and select/add WezTerm. Scroll down to OpenGL GDI compatibility and set it to "Prefer compatible."
Should look like this:
The config.front_end setting didn't matter, even if you are not using OpenGL, this solves it.
Hi, I also had this issue. I saw a comment on reddit about this that helped me solve it:
Go to the Nvidia control panel > Manage 3d Settings, select the program settings tab, and select/add WezTerm. Scroll down to OpenGL GDI compatibility and set it to "Prefer compatible."
Should look like this:
The
config.front_endsetting didn't matter, even if you are not using OpenGL, this solves it.
My friend, thankyou for this, not in a million years i would have ever known this was the issue, thankyou for fixing this for me.
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.
