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

Removed the gnome-shell delay after opening the dropdown #18

Draft
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

aunetx
Copy link

@aunetx aunetx commented Dec 11, 2023

Hello, I noticed there is a small delay (maybe 40ms?) in gnome-shell after opening the dropdown, probably caused by the fact that a function is called synchronously and it is not so fast to execute.

With this change, the function is called asynchronously, and it seems to remove the lag! Please try it and see if it changes it for you too, and if so that can be a good addition :)

@aunetx
Copy link
Author

aunetx commented Dec 11, 2023

Actually this does not really remove the delay, but still improve the situation a little bit by making (in my opinion) the delay less visible.

I guess the thing that is responsible for this delay is the use of GLib.spawn_command_line_sync, which should be replaced by its async version. However, I don't have any bit of idea about how to do it, as I never understood anything about asynchronous function in JS :)

@aunetx aunetx marked this pull request as draft December 11, 2023 17:03
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.

1 participant