Join GitHub today
GitHub is home to over 28 million developers working together to host and review code, manage projects, and build software together.Sign up
Focus does not follow window with directional move when focus_follows_mouse is enabled #3518
I'm submitting a…
[x] Bug [ ] Feature Request [ ] Documentation Request [ ] Other (Please describe in detail)
I have the following bindings:
When I use these to move a window from e.g. workspace 1 on my laptop display to workspace 2 on my monitor, I would expect the focus to follow the window as it moves. It is the usual behaviour for focus to follow the window as you move it left and right within a workspace, so I think it's reasonable to expect this to apply when moving it across a workspace with "move left" or "move right" (or even up and down if you have that kind of monitor layout).
If in my example scenario, there is already one or more windows in workspace 2, the window focus ends up on one of them instead of the one I'm moving. This behaviour is quite annoying because I then have to pause to find out where the focus has moved to, then move it back to the window I was moving so I can continue moving it to the desired location. It's really not very intuitive.
i3 version: 4.16
i3 config: https://pastebin.com/mgE6BRwr
- Linux Distribution & Version: Ubuntu 18.04, Linux 4.15.0-38-generic - Are you using a compositor (e.g., xcompmgr or compton): No
I also see that this issue has been raised before in #2257 (but not #809 which is a completely separate issue), and it seems it is definitely not the intended behaviour #2257 (comment) and yet it still remains...
@Airblader That's fair, but I think if the issues could be merged in some way that would be good because I took the time to write proper reproduction instructions. Also the other issue has been lying around for years without being resolved and I'm unsure of why that's happened. I can provide logs too if you think that will help.
changed the title from
Focus ends up in the wrong place when moving windows across monitors
Focus does not follow window with directional move when focus_follows_mouse is enabled
Nov 10, 2018
referenced this issue
Nov 10, 2018
Should the "broken state" be reset when I do a regular i3 restart? Because the bug always happens for me.
EDIT: Also, for me it seems to be that it's when focus_follows_mouse and mouse_warping are both enabled. If I disable either one then it works fine, at least for as long as I tested it.
Yes. I have the same issue and it's a major problem. I want
Unfortunately this is not possible when the config says:
I think it's
I think mouse_warping output should be cancelled if you moved the window to the other output by using move up/down/left/right. Either that or focus_follows_mouse should be cancelled when the cursor is moved by mouse_warping.
And yeah I think your idea for a mouse_warping window option is a good one.