-
-
Notifications
You must be signed in to change notification settings - Fork 77
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
front_app_switched event firing multiple times #545
Comments
Thats odd. The only explanation I have for this is that for some reason alacritty steals focus because of something sketchybar (or a script invoked by it) does. Could you try running sketchybar from Terminal, kitty or some other terminal and via brew? Is the problem still there then? |
Can confirm that running via brew services and through Terminal.app causes the same issues. |
I have near the same bug with Vivaldi browser. It doesn't steal focus, but for some reason, when you watch videos on youtube with captions on, it engages constantly title update signal. And when you hover over pictures with a link it does so also, but one time per hover. Maybe we can update the script to ignore the title change signal, when the title actually stayed unchanged? It will still spam the script execution, but at least without distraction. Or maybe @FelixKratz has some more clever idea, to implement it inside Sketchybar? The less there are unneeded script executions, the better for the system overall. I believe this is an overlook by the coders of those apps, yet still an issue for us. 240604.Screen.Recording.2024-06-03.at.15.06.38.mp4 |
Are you sure that the |
No, it is a title change trigger, and yes, it is triggered by yabai. Which, I believe, is looking at the system signal for title change?
|
Yes exactly, it seems that the yabai event is fired even tough the title was not changed. Probably because of some shenanigans the devs of the vivaldi app are doing. This particular problem can not be fixed from within sketchybar because it is a custom event triggered by an external source, so there is no additional bookkeeping I could internally do to buffer the events (like I am doing for most other events) because inside of sketchybar the event has no attached meaning. This would probably need to be addressed in the script thats executed, or in yabais code. |
Would be great, if that will be fixed in yabai. |
@bustinbung I believe, you can modify this script for your issue, as a dirty fix. |
Recently noticed some strange flickering issues with one of my items, traced it back to the
front_app_switched
event firing multiple times when it shouldn't. Unsure if this is a personal config issue or an issue with SketchyBar, but wanted to open an issue anyways. If you need any additional information, please let me know. Thanks again!System Information
Config
sketchybarrc
apps.sh
apps_plugin.sh
Screen Recording
Screen.Recording.2024-05-02.at.09.38.29-1.mov
Explanation:
The text was updated successfully, but these errors were encountered: