Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

workspaces: don't try to reopen special workspaces #6802

Merged
merged 1 commit into from
Jul 7, 2024

Conversation

VirtCode
Copy link
Contributor

@VirtCode VirtCode commented Jul 7, 2024

Describe your PR, what does it fix/add?

Currently, if a special workspace is set whilst already being open, the special workspace is put in a weird state where it is open, but not shown (possibly due to the fade-in and fade-out animations being ran concurrently).

This bug was bothering me for quite some time, but never came around to look into it. In my case it often happens because I have windowrules along these lines:

windowrulev2 = workspace special, class:^Alacritty$

This meant that when I tried to open such a window with the workspace already being open, it would enter this weird invisible state. Of course, this state could be overcome by just closing and reopening the special workspace, but it was annoying nonetheless.

The implemented fix is simple, just don't do anything if the workspace is already shown.

Is there anything you want to mention? (unchecked code, possible bugs, found problems, breaking compatibility, etc.)

No

Is it ready for merging, or does it need work?

Yes

src/helpers/Monitor.cpp Outdated Show resolved Hide resolved
Copy link
Member

@vaxerski vaxerski left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

yarr

@vaxerski vaxerski merged commit 22138ac into hyprwm:main Jul 7, 2024
10 of 11 checks passed
DawfukFR pushed a commit to DawfukFR/Hyprland that referenced this pull request Jul 12, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants