Skip to content

Disable dynamic background color inside Zellij to stop transparent panes becoming opaque - #16217

Open
a3lem wants to merge 1 commit into
helix-editor:masterfrom
a3lem:disable-dynamic-bg-in-zellij
Open

Disable dynamic background color inside Zellij to stop transparent panes becoming opaque#16217
a3lem wants to merge 1 commit into
helix-editor:masterfrom
a3lem:disable-dynamic-bg-in-zellij

Conversation

@a3lem

@a3lem a3lem commented Aug 26, 2026

Copy link
Copy Markdown
Contributor

This fixes a minor annoyance introduced since v25.07.1 by PR #15527.

When using Helix inside Zellij with a transparent terminal background, opening Helix turns panes opaque, and pane transparency isn't restored when Helix is closed.

The only terminal where I haven't observed this so far is Kitty.

I used my AI coding agent to understand what's going on. The short vesion (my words): Zellij re-emits the pane background as explicit cells. Most terminals draw these cells as opaque – hence, panes lose transparency. This doesn't get restored when Helix is closed because Helix no longer emits OSC111 on exit. Kitty is the exception because it applies transparency to both default background and cell background.

This PR blocks dynamic background color setting in Zellij, just as was already being done for Tmux. It's a small fix (full discloure, though: I identified it using AI). The comment was written by me. The formatting was checked against rustfmt. Zellij panes now retain their transparency when using Helix.

Zellij re-emits the pane background as explicit cells, which most terminals draw opaque, so panes lose transparency. Guard $ZELLIJ like $TMUX.
@a3lem a3lem changed the title Disable dynamic background color inside Zellij Disable dynamic background color inside Zellij to prevent transparent panes become opaque Aug 26, 2026
@a3lem a3lem changed the title Disable dynamic background color inside Zellij to prevent transparent panes become opaque Disable dynamic background color inside Zellij to stop transparent panes becoming opaque Aug 26, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant