Skip to content

Dragging Chrome tab causes snapping bug when creating new window #2599

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

Open
swalok47716 opened this issue Apr 10, 2025 · 6 comments
Open

Dragging Chrome tab causes snapping bug when creating new window #2599

swalok47716 opened this issue Apr 10, 2025 · 6 comments
Labels
bug Something isn't working

Comments

@swalok47716
Copy link

swalok47716 commented Apr 10, 2025

Every time when I am dragging a chrome tab to a new window the dragged window will be snapping back and forth, and when I release my mouse the window won't be at the right place and sometimes leaving a orange overlay behind windows.

Environment

  • OS version: macOS 15.4
  • yabai version: yabai-v7.1.14
  • Installation method: brew

GIF / Screenshot

Image

Image

@Bellavene
Copy link

Something is wrong in your .yabairc

@swalok47716
Copy link
Author

Something is wrong in your .yabairc

I removed all the codes in .yabairc other than following code but still got the same bug:
yabai -m config layout bsp

@Bellavene
Copy link

Anyway, something triggers insertion point. I have seen it happen only if something is invoking it through a command to yabai.

@koekeishiya
Copy link
Owner

The visual you see is because of interaction with the mouse-drag system: #2109
The issue is that Chrome sends "window_created" notifications instantly the moment you slightly drag the tab 1pixel, and yabai receives and processes the notification that a window has been created. It then thinks you are dragging a window, which you technically are doing, which causes the visual to render.

I'm not fully sure how that would be solved, something like "if active application is Chrome and the mouse is pressed, delay window_created notifications or something. That sounds fairly error prone and pretty terrible to me though, so not sure I want to attempt that.

My honest suggestion is to stop using Chrome. It is pretty bad for many reasons these days.

@koekeishiya koekeishiya added the bug Something isn't working label Apr 10, 2025
@jorgebef
Copy link

This seems to be a known issue now, although I just encountered it (I only use Chrome for testing purposes as it's the most popular browser by user share).

Maybe it would be worth providing the option to disable insert_feedback_color ?
I've set it to a color with 00 alpha (0x00ffffff specifically for me) and it doesn't show visually, but the issue is still there.
That's why I believe that making the feedback option be opt-in or at least able to opt-out of would solve this entirely maybe?

@tariqc80
Copy link

I also have to use Chrome for work to do certain tasks. A workaround I use is to drag the tab out of the window and release it so it gets titled, then I grab it again. Though it's an extra step, this stops the weird snapping.

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

No branches or pull requests

5 participants