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
Focus follow mouse WHILE holding mouse1 #3429
Comments
I don’t see a link to logs.i3wm.org. Did you follow https://i3wm.org/docs/debugging.html? (In case you actually provided a link to a logfile, please ignore me.) |
Possibly related (or not, I'm not sure): awesomeWM/awesome#170 (comment) |
Yes, I suspected that chrome does something like that. The issue would be avoided if we could maintain focus_follows_mouse while the chrome tab is dragged but I don't think we can do this if chrome grabs the pointer. |
This is not just chrome, focus doesn't change while dragging text between terminal and text editor on different monitors either. |
Because the application that does the drag grabs the pointer (eg in gtk: https://github.com/GNOME/gtk/blob/1729da8a3e611ce83624663b1cf762080a13eab2/gdk/x11/gdkdrag-x11.c#L2117) and we don't receive events. Nothing we can do about it AFAIK. |
But that still does not explain why this problem does not exist in 4.11. |
My understanding right now, after the comments in awesomeWM/awesome#170, is that chromium gets the I am closing this since we haven't found anything i3 can improve on for this issue. A hacky workaround is to constantly (since i3 will reset it under some conditions) delete the _NET_WM_DESKTOP from all chromium windows. Here is a script using https://github.com/acrisci/i3ipc-python/: #!/usr/bin/env python
import os
import i3ipc
def on_window(_, e):
if e.container.window_class == "Chromium":
os.system(
"xdotool search --class chromium | xargs -L1 xprop -remove _NET_WM_DESKTOP -id"
)
i3 = i3ipc.Connection()
i3.on("window", on_window)
i3.main() |
Ah, I understand. Thank you for your time and effort. |
I'm submitting a…
Current Behavior
As first described in:
https://www.reddit.com/r/i3wm/comments/8ixzv9/focus_follow_mouse_while_holding_mouse1/
I recently switched distro and with it i went from i3 4.11 to i3 4.13. In 4.11 I could drag and drop chrome tabs to different monitors. Now this is not possible anymore as the target chrome window (on the other monitor) doesn't get focused when i cross the screen boundry.
Expected Behavior
I expect that when a tab is dragged from monitor 1 into a chrome window on monitor 2, that the chrome window gets focused and merges the tab.
Reproduction Instructions
In 328035f or later, open a chrome window on monitor 1, and a chrome window on monitor 2, and drag a tab from one window to the other.
Environment
Anything after: 328035f
Output of
i3 --moreversion 2>&-
:The text was updated successfully, but these errors were encountered: