Skip to content

[BUG REPORT] Ely stays visible after minimizing ELYTerminal on X11 #125

Done

Description

@yaoyao368345

Environment

Observed with ELYTerminal 0.2.2, Ubuntu 22.04, GNOME Shell 42.9, X11.

ELYTerminal 0.2.6 is installed locally. Inspection of its pinned Linux backend shows that the visibility calculation still does not account for _NET_WM_STATE_HIDDEN; the issue has not yet been reproduced at runtime on 0.2.6.

Steps to reproduce

Enable Ely in Settings → Terminal → Ely, then minimize the terminal window.

Expected behavior

Ely hides when the terminal is minimized and reappears when it is restored.

Actual behavior

On 0.2.2, Ely stays visible on the desktop. The terminal window reports WM_STATE=Iconic and _NET_WM_STATE_HIDDEN, while both windows still report Map State: IsViewable.

Likely cause and local verification

The gpui X11 backend reads _NET_WM_STATE_HIDDEN but does not use it when calculating visibility, so Ely’s visibility observer misses the minimize event. In a local 0.2.2 build on the same desktop, treating that flag as WindowVisibility::Hidden and notifying the observer on _NET_WM_STATE changes made Ely hide on minimize and reappear on restore. The targeted visibility unit test passed (1 passed, 0 failed); the full test suite was not run.

Activity

  1. Raiden-MeixElysia commented on Nov 24, 2026

    @Raiden-MeixElysia
    Contributor

    Fixed in 0.2.7. GNOME's mutter keeps a minimized window mapped and only sets _NET_WM_STATE_HIDDEN on it, and gpui's X11 window counted any mapped window as visible. The gpui-pre-linux fork now counts _NET_WM_STATE_HIDDEN as hidden, so Ely hides with the minimized window and comes back when it is restored.

    Tested under Xvfb by setting that property on the main window, and under openbox, which unmaps a minimized window. GNOME itself was not run, so please say if it still shows there.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions