donovanglover / hyprnome

GNOME-like workspace switching in Hyprland.
https://donovan.is/hyprnome
GNU General Public License v3.0
142 stars 3 forks source link

Workspace 1 doesn't auto-close when empty and switching to another workspace with active windows #123

Closed jorritvanderheide closed 6 days ago

jorritvanderheide commented 6 days ago

Bug Report

Environment

Expected & Current Behavior

Currently, workspaces auto-close when they have no windows and the user switches to another workspace. This in some cases doesn't happen for workspace 1 though.

When workspace 1 shouldn't auto-close: when workspace 1 is empty and the user opens a new workspace (2), which is also empty. In this case, the user should be able to switch back to workspace 1 (the is the current, correct behavior).

When workspace 1 should auto-close: when workspace 1 is empty and the user switches to another workspace that has active windows (this is the bug, this currently doesn't happen). The expected behavior is workspace 1 auto-closing and the first workspace with active windows becoming the new workspace 1.

Step to Reproduce

Priorities

Add a :+1: reaction to issues you find important.

jorritvanderheide commented 6 days ago

After reading your blog article about this, I found the --no-empty-before flag does exactly this.