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

slow UI update when creating / moving spaces #82

Open
leandwo opened this issue Jul 6, 2021 · 3 comments
Open

slow UI update when creating / moving spaces #82

leandwo opened this issue Jul 6, 2021 · 3 comments
Labels
enhancement New feature or request

Comments

@leandwo
Copy link

leandwo commented Jul 6, 2021

Just installed spacebar and happy with it so far. But it seems slow when creating and moving spaces. There is about a ~2-4 sec delay for the UI to update. Destroying spaces has no delay.

I'm on macOS Big Sur 11.4, if that makes a difference.

@leandwo
Copy link
Author

leandwo commented Jul 20, 2021

Found a workaround. Setting something in spacebar's config will immediately refresh the UI.

You can just set any setting after creating a space and it should help with responsiveness:

# .skhdrc
# create/delete spaces
ctrl + shift + alt - z: 
  yabai -m space --create; \
  spacebar -m config spaces on
ctrl + shift + alt - x: 
  yabai -m space --destroy; \
  spacebar -m config spaces on

@cmacrae cmacrae added the enhancement New feature or request label Jul 21, 2021
@cmacrae
Copy link
Owner

cmacrae commented Jul 21, 2021

Hey @leosolid 👋 Thanks for raising this.
Yes, there are no events considered in the event loop for space creation/destruction at the moment.
spacebar's development has been placed on hold whilst I work on v2 (along with real life!), however this may be simple enough to implement that I'll just chuck it in :)

The destruction of workspaces is reflected instantly because it triggers a "space changed" event emission.

When you say "moving spaces", what do you mean? Changing the currently focused space, or re-ordering spaces?

Thanks for sharing your workaround for others 🙇

@leandwo
Copy link
Author

leandwo commented Jul 21, 2021

@cmacrae After checking again, just creating and re-ordering spaces was where I was experiencing the sluggishness.

Looking forward to v2!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants