-
-
Notifications
You must be signed in to change notification settings - Fork 647
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
Apps auto raise when hovering over Dock after unplugging external display #660
Comments
This sounds like the same symptoms described in #637, and I can confirm that I still occasionally experience the issue. I also have an external display, but I haven't been able to determine the exact scenario that causes it to start happening. Since it maybe happens once a week for me, I've just gotten used to restarting yabai when it happens. |
yeah, I also have this problem every time I start my machine. It disappears after I restart yabai. |
I guess I have found another clue. I've got MBP 15 with dedicated graphics and when I go to System Preferences -> Energy Saver -> Uncheck Automatic graphics switching (to use only dedicated AMD GPU) seems like the issue is gone and I haven't experienced this from the time I unchecked that when plugging/unplugging external display. Because I think when external display is plugged in, Mac automatically switches to dedicated GPU and if this option is checked, after unplugging it switches back to integrated low power one. So this switching might be the cause. |
@Surimitzu, you're on to something here. I'm working on my laptop after disconnecting the monitor, and I just hovered over a MacOS menu bar, and the annoying clicks (that we've all described here) started happening. As soon as I started experiencing this, I recalled the update on this issue that I'd seen, and I opened up System Preferences and unclicked the "Automatic graphics switching" option. After that point, hovering over any MacOS UI elements (menu bar items, Dock icons, etc) did not trigger the phantom clicks that are being described here. I can toggle that graphics switching option back on, and I can now reliably trigger the phantom clicks on the MacOS UI elements. Unclicking the option resumes the normal behavior of not experiencing the phantom clicks. If there's any more diagnostic info I can capture, I'm happy to collect it, and I'll see if I can now figure out how to reliably get into this odd state. |
Ok, I can reliably reproduce this. For me, the steps to reproduce are:
From here, I consistently experience the "phantom click on hover" behavior until I either restart yabai or unclick the "Automatic graphics switching" option. Re-enabling that graphics switching option reliably brings the unwanted behavior back. Restarting yabai permanently resolves the issue until I go through this same sequence. I've tried this sequence with that option both enabled and disabled at the beginning of the sequence, and it doesn't seem to impact the final outcome. |
I can also reliably reproduce this on 3.3.0, with autofocus* on (does not happen with autoraise). Any switch away from the discrete GPU (i.e. unplugging ext. monitor, or using a utility like GFXCardStatus to switch to and away from it) will result in the behaviour described above the "phantom click on hover" - it affects both menubar (menu items only - not the actual bar icons) and the Dock. I tried enabling debug_output, then triggering the behaviour, but couldn't see anything useful in either of Yabai's log files. *Sad to see there are plans to remove autofocus - I much prefer it to autoraise - e.g. I prefer being able to scroll the view in partially occluded windows, without covering my foreground window. I get the choice to raise the lower-layer window with a click if I want to - don't get that flexibility with autoraise. |
Well, maybe all of your problems are related to GPU. But my problem just appears randomly. You can never predict when it appears. |
Correction to my previous comment - where I stated that I only see this behaviour with autofocus - I do see it with autoraise as well (could have sworn it didn't happen at first, but now it's consistent with autoraise as well, perhaps I was mistaken). Another potentially interesting data point: if I unplug my external monitor (GPU switches and this behaviour is triggered), I can then plug the monitor back in (switch back to discrete GPU) and the behaviour stops, WITHOUT restarting Yabai. |
I'm also experiencing this issue, really annoying :( |
Same behavior, macbook pro 16, i9, AMD Radeon Pro 5500M, macOS Catalina 10.15.7, every time the discrete GPU toggle up and then down i keep getting click events fired on everything i hover (menus, apps, icons, dialogs, etc..), it's really dangerous.
@koekeishiya There is anything we can log/look to help debug this? Relevant contents of .yabairc
|
I really don't know why this behaviour would change when a GPU toggle happens and I don't have a discrete GPU in my macbook; it is not really something I can work on. Seems like a macOS issue to me. Does this happen if you disable focus-follows-mouse? |
I haven't been to reproduce this since when I disabled EDIT: also noticed that both 'autorise |
Can you install version 3.2.0 and try to reproduce the problem. |
Yeah, I can't reproduce it with that version, pretty dumb of me to not write down that this started happening once I updated.... |
Should be fixed on master. |
If people are still having this issue in v3.3.5, someone that can reproduce the issue will have to do a git bisect from v3.2.0 and identify the commit that introduces the problem. |
Still seeing this on MacBook Pro (16-inch, 2019) Version 11.1 (20C69) |
I'm seeing this on a 15-inch 2018 MBP running Catalina 10.15.7 and Yabai 3.3.7. Definitely seems to have something to do with switching between discrete GPU and the built-in Intel GPU. I use my MBP with a dock and 3 external displays during the day, which forces it to use the discrete GPU. When I un-dock in the evenings, it generally switches to the integrated GPU, and this is when I start getting the unintended clicks behavior. I notice it mostly on the dock, but it also happens in pull-down menus within some applications and even pull-down selection lists on webpages in Opera. Restarting Yabai corrects it temporarily. Switching from integrated GPU to discrete GPU when I dock again does not seem to trigger the behavior. |
not sure what the repo case is, but I do occasionally see this behavior (i.e. phantom clicks when hovering on dock) as well. using yabai-v3.3.7 |
still seeing this with v3.3.8 |
I have been struggling with this annoying issue for a long while, after reading the comment of @cantfindagood1 above, I found https://nathansnelgrove.com/how-to-force-your-macbook-pro-to-use-its-discrete-graphics-card-when-its-plugged-in/. When I'm away from my monitors I just use the Here are some notes on the command:
|
…om event we send to the windowserver
Hello,
I have installed yabai with a minimal setup (to use "focus follow mouse" feature, without auto raise):
yabai -m config focus_follows_mouse autofocus
I'm very satisfied with it, however I noticed, that sometimes (I haven't figured out real root cause yet) all apps auto raise, but only when I hover over them in Dock. Then I need to restart yabai to fix this. It seems like it has something to do with external display, because if I plug it in, it works ok, but if I unplug, I face this issue. Seems like it's not replicable everytime I do this tho, but I was not able to reproduce it differently so my guess is that it has something to do with external display un/plugging.
Has anyone experienced this issue? Any idea how to fix it?
Thank you.
The text was updated successfully, but these errors were encountered: