Skip to content

hyprland/workspaces: add debounce timer to prevent workspace button f…#5032

Open
yyyumeniku wants to merge 1 commit into
Alexays:masterfrom
yyyumeniku:master
Open

hyprland/workspaces: add debounce timer to prevent workspace button f…#5032
yyyumeniku wants to merge 1 commit into
Alexays:masterfrom
yyyumeniku:master

Conversation

@yyyumeniku
Copy link
Copy Markdown

When switching between workspaces rapidly (especially empty ones), Hyprland sends createworkspace and destroyworkspace events slightly out of order. This causes workspace buttons to render in wrong positions for a split second before snapping to their correct spots.

Add a 7ms debounce timer that batches workspace events before calling dp.emit(), preventing the visual glitch.

Fixes #4376

…licker

When switching between workspaces rapidly (especially empty ones),
Hyprland sends createworkspace and destroyworkspace events slightly
out of order. This causes workspace buttons to render in wrong
positions for a split second before snapping to their correct spots.

Add a 7ms debounce timer that batches workspace events before
calling dp.emit(), preventing the visual glitch.

Fixes Alexays#4376
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.

2 workspaces will show up at once in the process of switching workspaces

1 participant