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

mouse.exited is not reliable. #613

Closed
aspauldingcode opened this issue Sep 12, 2024 · 8 comments
Closed

mouse.exited is not reliable. #613

aspauldingcode opened this issue Sep 12, 2024 · 8 comments
Labels
available on master bug Something isn't working

Comments

@aspauldingcode
Copy link

A best example is to allow all space icons to highlight when mouse.entered for that item.

mouse.exited doesn't always turn highlight off when I move away the mouse.
I've worked around this by also using mouse.exited.global, but that's kinda a bad solution.

Right now, this means that if I move the mouse quick enough over other sketchybar items, because I've set them to show popup on hover, the item's popups sometimes get stuck open.

This is bad. like, really bad. because when you highlight the popup, it forgets to update certain items when mouse.exited.global is triggered.

So, SOMEtimes I just have random popups stuck open.

This would be solved in 2 ways:
1 - by me. I would have to specify in the config, under mouse.entered, remove popups of ALL other items. This would be an iterative script implementation, which would likely be slow, but it would solve my issue of popups getting stuck forever.

2 - by you. You would likely be able to solve this much more efficiently, and the best way I think would be to improve the reliability of mouse.exited event specifically.

@aspauldingcode
Copy link
Author

Update:
Oh my goodness this bothers me. I really want this fixed. I keep getting sketchybar popups stuck. They display over everything! So annoying. I really hope there's a fix..

@FelixKratz FelixKratz added the bug Something isn't working label Dec 28, 2024
@aspauldingcode aspauldingcode marked this as a duplicate of #638 Jan 22, 2025
@aspauldingcode
Copy link
Author

aspauldingcode commented Jan 22, 2025

@FelixKratz I'm going insane. please fix this issue. I'll pay you $50 if you can do this by (the end of) next month.

On hover, many popup items get stuck. This is super annoying and frustrating. It is disrupting everything, and I'm not willing to disable it because you haven't introduced right/click vs left/click functions, so I can't use two seperate functions per bar item unless you fix this and/or add left/right click seperate specifiers.

On highlight, I like to draw a tooltip/popup. after I move the mouse over another item, it should go away. I find myself using mouse.exited and mouse.exited global on nearly all elements. Currently, even when I don't highlight anything, sometimes these popups open and get stuck there. a lot of times, its all of my popup items. Please fix the reliability issue of the mouse.exited and mouse.exited global events, as well as optimize them. They are really slow; testing on m1 macbook air.

I've been using sketchybar since ventura, and I've been having this issue since then. I am on Sequoia, 15.0.1. sketchybar-v2.22.0.

Thanks.

@aspauldingcode
Copy link
Author

Image

@aspauldingcode
Copy link
Author

My sketchybar config is found here:
https://github.com/aspauldingcode/.dotfiles/tree/main/users/alex/NIXY/modules/sketchybar
I write it with nix and it gets sent to ~/.config/sketchybar/sketchybarrc and ~/.config/sketchybar/plugins/*.sh. Please let me know if you need more information.

@FelixKratz
Copy link
Owner

FelixKratz commented Jan 22, 2025

I remember having looked at this problem for quite some time in the past. I have tried to improve the mouse exit event handling on master.
Could you test it and report back if this solves the problems you are seeing?

@aspauldingcode
Copy link
Author

This is insane. This seems to be a very different story. I loaded up several things and it seems to be working effectively.

Could you test it and report back if this solves the problems you are seeing?

I'd say it definitely solved my problem.

@aspauldingcode
Copy link
Author

@FelixKratz will you be able to push that change to a release soon?

@FelixKratz
Copy link
Owner

I think I will test it for some days and then do a release sometime next week.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
available on master bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants