-
-
Notifications
You must be signed in to change notification settings - Fork 648
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
Ubersicht taking(?) click events on yabai 3.0.2 #535
Comments
I'm also having the same problem after upgrading to 3.0.2, I wanted to include some output that I though might be helpful:
When I quit uebersicht, I don't get the last two lines, and focussing works as it used to. |
I don’t understand why this is happening. Yabai does not focus or do anything without the user triggering a command.
The click thing looks more like an issue with Ubersicht than with yabai.
… On 23 May 2020, at 17:58, Oguz Serbetci ***@***.***> wrote:
I'm also having the same problem after upgrading to 3.0.2, I wanted to include some output that I though might be helpful:
thread: 70164480 | event_signal_transmit: transmitting display_changed to 1 subscriber(s)
thread: 70164480 | EVENT_HANDLER_APPLICATION_LAUNCHED: osascript (10640) is not observable, subscribing to activationPolicy changes
thread: 70164480 | EVENT_HANDLER_APPLICATION_TERMINATED: osascript (10640) (not observed)
When I quit uebersicht, I don't get the last two lines, and focussing works as it used to.
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub <#535 (comment)>, or unsubscribe <https://github.com/notifications/unsubscribe-auth/ABPDZV2WGYOAIO73CUHZUK3RS7XBJANCNFSM4NIPPQCA>.
|
It happens when I send an event to übersicht to update the active space. And if I remove the events from firing everything is ok. But I didn't change anything in my setup and übersicht except for updating yabai to 3.0.2. |
This just seems like a scenario in which 2 bugs have cancelled each other, and when I fixed the bug in yabai, this one surfaces. As you describe, this occurs when ubersicht responds to a signal from yabai that the space has changed. yabai does not do anything here, it is ubersicht that for some reason decides that it needs to steal focus to update, when it should simply refresh in the background. |
Perhaps I should post this issue on the Ubersicht GitHub as well? |
That's probably the way to go. I don't see how yabai could be causing the issues mentioned here. |
I'm also facing the same issue |
Just to add some more information for me this is related to trying to refresh a widget after changing spaces e.g. by using the following in yabairc:
With this configured if you ctrl+tab to an app in another space or cmd+tab between apps in different spaces - Ubersicht will steal focus. Interestingly however if you switch spaces using Yabai instead then everything works as normal e.g. using |
So what is happening is that yabai detects some invisible Übersicht window that fill the entire screen for some reason, concludes that we should not manage said window and make it topmost (due to the setting I have resolved this issue by simply blacklisting the Übersicht process from yabai, which makes it so that we no longer attempt to even interact with windows owned by that process. Not sure if this has any downsides to it, but I don't see any other way to fix this. That said, I do think this is some very weird set up by Übersicht. It is definitely possible to at least not steal click events inside an invisible window, and only allow them to go through in areas where there is an actual widget being drawn. |
I wonder if it's a similar issue I have with using Kap screen recording Looks like it's using the native screencapture under the hood. After I start recording it's like click events get lost and suddenly it works and stops again. Using the builtin screencapture works as expected I'll stick with the builtin for now :) |
I changed this from being a specific Übersicht blacklist to not touching properties of windows that report a role of AXUnknown and AXPopover. This does fix the Übersicht issue, and I believe it should handle most of these types of scenarios. |
When using yabai 3.0.2 and Ubersicht 1.4 together and I change workspaces then left click in a window to try and interact with it, that window loses focus, and it seems like text is being selected in my ubersicht bar.
It seems like when I change the workspace with the trackpad gesture this bug occurs but not when I use a keyboard shortcut but I'm not sure about this.
I was pretty sure I had never seen this happen before, and sure enough if I download the 3.0.1 release and just run the pre-built binary this behaviour does not occur.
I've tried to capture this here. You can see discord/spotify losing focus when I left click on them after a workspace change, and text in ubersicht being selected at the top.
The text was updated successfully, but these errors were encountered: