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

Fix: Hyprland/Workspaces' windows disappearing when moving around #2578

Merged
merged 10 commits into from
Oct 20, 2023

Conversation

Syndelis
Copy link
Contributor

Fixes #2557

About this PR

This PR fixes an issue that caused windows to disappear. This was caused because, sometimes, Hyprland's IPC decides to report the window-related event (openwindow, movewindow) before the createworkspace event. This, in turn, caused Waybar to have nowhere to put the moved/opened window, causing it to be discarted.

grim_2023-10-16T16:27:06-03:00

About the solution

In order to solve this problem, the window creation has been delayed, much akin to how workspaces are created; they are pushed into a vector and are processed during Workspaces::update(). There will be 3 attempts to create each window, accounting for the possibility that the createworkspace message got just late enough that it wasn't processed in the same update() call.

@Syndelis Syndelis force-pushed the fix/hyprland-windows-disappearing branch from 97f150f to e845db8 Compare October 18, 2023 22:12
Copy link
Contributor

@khaneliman khaneliman left a comment

Choose a reason for hiding this comment

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

Awesome fixes, appreciate all your effort! Feel like this is in a much more stable and functional state for persistent workspace users. Only 1 remaining bug that is more niche (multi monitor, persistent user, launch before waybar)

@Alexays Alexays merged commit eefd6e8 into Alexays:master Oct 20, 2023
8 checks passed
@Alexays
Copy link
Owner

Alexays commented Oct 20, 2023

Thanks a lot again!

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.

Hyprland/workspaces: window rewrite issues
3 participants