bspwm icon indicating copy to clipboard operation
bspwm copied to clipboard

Chromium based browsers cannot drag and drop tabs across monitors

Open AlexAegis opened this issue 6 years ago • 8 comments

Firefox works just fine.

Two browser windows, one on each monitor, multiple tabs opened on both. When dragging a tab to another, on chromium browsers it just does nothing. In firefox it does. Within a single monitor it works.

bspwm version: 0.9.7-10-g2ffd9c1 chromium version: chromium-80.0.3987.163 brave version: Brave Browser 80.1.5.122 firefox version: Mozilla Firefox 74.0.1 (freshest everything on arch)

AlexAegis avatar Apr 04 '20 23:04 AlexAegis

fwiw, it is also impossible to drag a chromium tab at all across the monitor border, i.e. to move it to a new window on the other monitor. (which works for firefox)

I have also noticed that the cursor changes to a special drag-and-drop cursor when dragging firefox tabs whereas it doesn't for chromium tabs:

cursor

Also, chromium creates a new window as soon as the cursor drag leaves the tab bar, and deletes the new window as soon as the drag enters the tab bar again, which makes dragging a tab to a new window not very usable with tabbed windows. Firefox otoh, only creates a new window when you release the mouse button.

tab-drag

sidequestboy avatar May 08 '20 20:05 sidequestboy

Seems to still not be possible.

fuzzy-focus avatar Aug 25 '22 11:08 fuzzy-focus

2022-08-25 13-49-47.webm

Seems to work for me, but I do have the same problem as @sidequestboy: a new window is created even without releasing the mouse.

@fuzzy-focus Does it not work at all, even when dragging the mouse all the way up to the top bar?

zjeffer avatar Aug 25 '22 11:08 zjeffer

I'm running bspwm 0.9.10-2 and for me it looks like this:

https://user-images.githubusercontent.com/13691063/186711397-3213985e-d1ed-4e6f-9f5e-603691f4b0a0.mp4

This is only for a single screen, but I think it is related. Look at the cursor position. As soon as the tab would be added to the other browser instance the cursor gets repositioned and the action starts anew.

fuzzy-focus avatar Aug 25 '22 15:08 fuzzy-focus

Is that Google Chromium, or another Chromium-based browser?

EDIT: also for some reason I can't watch the video you uploaded in Firefox, but I can in Chromium? Weird.

zjeffer avatar Aug 25 '22 16:08 zjeffer

It's google-chrome-stable from AUR.

fuzzy-focus avatar Aug 25 '22 16:08 fuzzy-focus

google-chrome-stable works for me as well. Maybe one of your extensions is creating the problem? Try running chrome in safe mode.

zjeffer avatar Aug 25 '22 17:08 zjeffer

Nope, not an extension. Just tested it in Incognito mode, same thing.

I wonder if the problem is with my bspwm settings?

bspc config window_gap          10

bspc config single_monocle        true
bspc config borderless_monocle    true
bspc config gapless_monocle       true
bspc config pointer_follows_focus true
bspc config focus_follows_pointer true

I suspect that especially the last two might be causing the fun.

[edit] Yep just tested it. With bspc config pointer_follows_focus false it worked as intended. Disregard my above rambling and thanks for the attention at least ;)

fuzzy-focus avatar Aug 28 '22 17:08 fuzzy-focus