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

Only emit rename event for altered workspaces. #118

Merged
merged 1 commit into from
Jan 27, 2025

Conversation

matt-fff
Copy link
Collaborator

@matt-fff matt-fff commented Jan 11, 2025

Description

Currently this project emits rename events for all workspaces on every workspace change.

This can make things slow for downstream Hyprland rename event consumers, which have to process numerous redundant events. For users with a lot of workspaces, this can cause a perceptible amount of delay (and redundant logs) in downstream applications.

Type of change

  • New feature (non-breaking change which adds functionality)

How Has This Been Tested?

Added new unit tests for the workspace cache.
I have been running this version of hyprland-autoname-workspaces on my main desktop without issue.

@matt-fff matt-fff force-pushed the mw/selective-name-emit branch 3 times, most recently from 0e360e7 to d9ae92b Compare January 11, 2025 19:54
@matt-fff matt-fff force-pushed the mw/selective-name-emit branch 4 times, most recently from e1e1833 to 1408fed Compare January 12, 2025 17:08
@matt-fff matt-fff force-pushed the mw/selective-name-emit branch 2 times, most recently from 2eaf478 to 7542e26 Compare January 27, 2025 00:52
@matt-fff matt-fff force-pushed the mw/selective-name-emit branch 3 times, most recently from e126650 to 6ef43cb Compare January 27, 2025 01:38
@matt-fff matt-fff requested a review from cyrinux January 27, 2025 01:40
@matt-fff matt-fff marked this pull request as ready for review January 27, 2025 01:40
@cyrinux
Copy link
Collaborator

cyrinux commented Jan 27, 2025

Thanks @matt-fff, LGTM

@matt-fff matt-fff merged commit a4d379b into hyprland-community:main Jan 27, 2025
8 checks passed
@matt-fff matt-fff deleted the mw/selective-name-emit branch January 27, 2025 15:43
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 participants