-
-
Notifications
You must be signed in to change notification settings - Fork 649
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
Hovering over things like items in the dock clicks on them #637
Comments
Sounds like an issue with autofocus. |
Made some changes to master. I can no longer reproduce the issue. |
I am more confused now, I just restarted my laptop, and had the issue straight away |
I have the same symptoms and so do other MacBooks. These errors occur while certain apps are running(In my case, photo app is the problem.) However, symptoms recur at frequent intervals. |
I am having this issue even after compiling from the master branch. :( |
Still cant reproduce this in the latest release (v3.3.0). |
Hi, I came across the same issue. Can I somehow help to track this down? ▶ yabai --version
yabai-v3.3.4
▶ cat .yabairc
#!/usr/bin/env sh
# global settings
yabai -m config mouse_follows_focus off
yabai -m config focus_follows_mouse autofocus
yabai -m config window_placement second_child
yabai -m config window_topmost off
yabai -m config window_shadow on
yabai -m config window_opacity on
yabai -m config window_opacity_duration 0.0
yabai -m config active_window_opacity 1.0
yabai -m config normal_window_opacity 0.90
yabai -m config window_border on
yabai -m config window_border_width 6
yabai -m config active_window_border_color 0xff775759
yabai -m config normal_window_border_color 0xff555555
yabai -m config insert_feedback_color 0xffd75f5f
yabai -m config split_ratio 0.50
yabai -m config auto_balance off
yabai -m config mouse_modifier fn
yabai -m config mouse_action1 move
yabai -m config mouse_action2 resize
yabai -m config mouse_drop_action swap
# general space settings
yabai -m config layout bsp
yabai -m config top_padding 36
yabai -m config bottom_padding 12
yabai -m config left_padding 12
yabai -m config right_padding 12
yabai -m config window_gap 16
echo "yabai configuration loaded.." Environment:
I have prepared a screen recording, in which you can see:
|
This should be resolved on master. See #660 |
Thank you! I've just tried out Also thank you very much for this great project! |
Unfortunately, the issue has just reappeared. I've restarted the system in the meantime, and now the issue is back when using
Please let me know if there is some way I can help to track this down. Also, I was wondering whether something like #675 could be used to exclude the dock from |
#675 is about On this bug: I've encountered this once recently after unplugging an external monitor, but have not been able to reproduce it reliably. Not sure what is happening here. |
@dominiklohmann - I've found this can be inconsistent if there an application running that needs the discrete GPU (if you have one), in that case there is no GPU switch when the external monitor is unplugged. For me, at least, this happens whenever there is a switch from discrete to integrated GPU. Switching back to the discrete GPU causes the phantom clicks to stop, without restarting Yabai. It's not just the Dock for me, either - clicks occur in Menu Bar menu items as well. Edit: sorry I should add that I'm not yet using MASTER (I'm on 3.3,4), only giving my experience of the inconsistency I've noticed. |
The issue went away after a while without restarting yabai. |
Can you try to install version 3.2.0 as described in #660? According to some users reverting to that version also resolved this issue. The change made to master reverts a specific change that may have impacted this, and works the same way on the master branch as it did in v3.2.0. I am getting mixed reports here and I do not have the hardware to reproduce this bug on my system. |
Thanks! In the meantime, I've come up with reproducible steps:
If the issue does occur, this will act like you've clicked on those icons rather than just hovering them. I've tried this a couple of times to make sure it's reproducible. The issue does occur for me in:
As you've suggested, I've installed yabai v3.2.0. I can confirm that following above steps does not reproduce the error on v3.2.0. However, I can't rule out that there might be something else going on, yet, because since reverting to v3.2.0, the focus-follows-mouse feature causes some flickering when the windows change their transparency due to the change of focus. What also does confuse me:
For me, the issue did not occur on v3.2.0 so far, but does occur on Please let me know if or when you have another candidate to try this on. |
This is really strange: When Some details: 0d3666e
Following the steps from above, the issue does not occur. b1b4c0d
Following the steps from above, the issue does not occur. verify
|
The homebrew formula uses Might make sense to use sanitizers for this, but I'm not sure how feasible adding them is with how simple the Makefile is. |
The only commit between v3.2.0 and v3.3.4 that in any way affects window focus is this one: I haven't used asan and so forth in a while, but I doubt that is the issue in this case. I do however agree that there is an issue here, and it is from what I understand, related to machines that have a discrete graphics card. I still have not been able to reproduce the issue in any version of yabai on my end (I don't have a discrete graphics card). |
Back to square one: Today the issue did occur when I was running:
These have previously been working for me. So the issue is not in ba36ce6 as you have already suspected. I'll report back if I find something new. |
For what it's worth, I have yabai v3.3.6 running on two different laptops (both with discrete gpu) with Big Sur 11.1. I have this hover behavior only on one machine:
|
I've added some debug output, originally to find out whether I could filter out the Dock window from the focus-follows-mouse feature. Thereby I found a couple of things:
After that, the mouse events stop, even when continuously moving the mouse over the wallpaper. If one is fast enough and moves the mouse cursor right over the Dock while these events are triggered, some Dock icons will receive clicks. If one waits a second or so until the events are over, one can hover over the Dock without Dock icons receiving click events. Can we somehow find out what triggers these mouse events? For now, I'm leaving the setting at |
The mouse-down and up events are generated by yabai because the only way to switch focus to another display (that has no window) is to synthesize a click on the desktop itself. Setting the There is no other way of focusing a display with no windows and I will not remove this because some people have set an undocumented Finder property. |
Thank you! 🎉 — So, I would imagine if that does not have the expected effect of focusing the second display, the window manager just keeps clicking, which would explain the observed behaviour.
I'm perfectly happy having found out the cause of this problem and just leaving I really appreciate your work on yabai! |
I am running Yabai 5.0.2 and I'm still experiencing this problem. I am on a MacBook Pro 16" M1 on Ventura 13.1. Restarting the Yabai service doesn't fix it. Any ideas? Frankly the only feature I use is focus-follows-mouse, so this is a bit of a dealbreaker for me. |
I'm having this same issue too,
I would rather yabai didn't click on the desktop to focus at all. |
Made improvements on master. See this comment though.. #863 (comment) |
The issue still happens to me.
|
same, yabai-v7.1.1 |
I am having a weird issue where sometimes hovering over stuff like items in the dock or stuff in the menu at the top automatically clicks it without me doing anything but hovering.
I haven't been able to find what causes this issue, although restarting yabai fixes it.
The next time it happens I'll try to record it.
The text was updated successfully, but these errors were encountered: