Skip to content

Theme does not update when switching spaces in an inactive window #11477

@deanasmith

Description

@deanasmith

Preliminary Checks

  • I have read and understood the important section above.
  • I have searched existing issues and avoided creating duplicates.
  • I am not filing an enhancement request.
  • I have checked that this issue cannot be reproduced on Mozilla Firefox.
  • I have checked that this issue can be reproduced once I removed all my Mods and Custom CSS.

What happened?

When two Zen windows are open, switching spaces in the inactive window (for example using the trackpad gesture without clicking the window first) updates the space’s pinned tabs and favorites but fails to update the theme/colors. This results in a visually incorrect workspace until a workspace switch is performed with the window focused.

Expected behavior

Switching spaces in any window should immediately update both the space content (pinned tabs, favorites) and the correct theme/colors, regardless of whether the window was active or inactive.

Actual behavior

Switching spaces on an inactive window updates the content of the space but preserves the previous workspace's theme, causing mismatched colors. Clicking the window and switching spaces again corrects it.

Steps to reproduce

  1. Open two Zen browser windows (same monitor or separate monitors).
  2. Click and interact with Window A, making it the active window.
  3. Without clicking Window B, move the cursor over it.
  4. Use a two-finger trackpad gesture (or a mouse horizontal scroll wheel, e.g., MX Master) to switch spaces in Window B.
  5. Window B switches to the correct space's tabs/favorites, but the theme from the previous space remains.

Screenshots and videos

zen-space-theme-bug.2.mp4

Note that the space named "SPACE 2" is white, while the space named "SPACE 1" is pink. When changing from "SPACE 1" to "SPACE 2" on the right (inactive) window, the colors of "SPACE 1" are preserved while it switches the tabs to those in "SPACE 2". Once I click on the right window and make it the active window, normal functionality is restored, and the colors can be fixed by switching away from the space and back to it.

Version

1.17.9b

What platform are you seeing the problem on?

Windows - x64

What component is this issue related to?

Workspaces

Relevant log output if applicable

n/a

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    Status

    ToDo

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions