Skip to content
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

Moving window to second monitor, focus remains on first #6075

Open
2 tasks done
vlachoudis opened this issue May 23, 2024 · 4 comments
Open
2 tasks done

Moving window to second monitor, focus remains on first #6075

vlachoudis opened this issue May 23, 2024 · 4 comments
Labels
4.23 bug missing-log Read the CONTRIBUTING.md file for instructions

Comments

@vlachoudis
Copy link

vlachoudis commented May 23, 2024

Welcome

  • Yes, I'm using the latest major release or the current development version. These are the only supported versions.
  • Yes, I've searched similar issues and discussions on GitHub and didn't find any.

Current Behavior

When I move with the keyboard ($mod+right) the focused window from one monitor to another, the window moves (as expected), however the window loses its focus, and the focus stays on the original monitor on another window if any.

This only happens if the original monitor has more than one windows.
If there is only one window, then the focus correctly moves with the moved window.

Expected Behavior

One would expect that the when a window is moved it always retains the focus, as it happens when the window doesn't change monitor.

Reproduction Instructions

  1. use a dual or more screen setup
  2. open two windows on the first monitor and two windows on the second monitor
  3. with the keyboard move one window ($mod+right or left not the combination to change workspace) from monitor A to monitor B
  4. when it changes the window the focus is lost

i3 version

Binary i3 version:  4.23 (2023-10-29) © 2009 Michael Stapelberg and contributors
Running i3 version: 4.23 (2023-10-29) (pid 3348)
Loaded i3 config:
  /home/bnv/.config/i3/config (main) (last modified: Thu 11 Apr 2024 19:20:51, 3620228 seconds ago)
  /home/bnv/etc/linux/i3/vasilis-laptop.conf (included) (last modified: Wed 20 Mar 2024 08:16:17, 5557302 seconds ago)

The i3 binary you just called: /usr/bin/i3
The i3 binary you are running: i3

Config file

using the default config

Linux distribution & Version

LUbuntu 24.04

Are you using a compositor?

I am sure I don't run any compositor

Logfile

No response

@vlachoudis vlachoudis added the bug label May 23, 2024
@i3bot i3bot added the missing-log Read the CONTRIBUTING.md file for instructions label May 23, 2024
@i3bot
Copy link

i3bot commented May 23, 2024

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.)

@i3bot i3bot added the 4.23 label May 23, 2024
@orestisfl
Copy link
Member

I swear we fixed this before 😅 #4604

@orestisfl
Copy link
Member

@vlachoudis just to confirm my own experience, does a restart fix it for you? I was able to reproduce when you first opened this but now I can't

@vlachoudis
Copy link
Author

vlachoudis commented May 23, 2024

@orestisfl you made me wondering, and I started testing it. I realize that some times it happens and sometimes it doesn't. So maybe is more subtle the problem.
I think it is a function of the location of the mouse.

When I move from left(primary) to right(secondary) and the mouse is located on the primary then the problem appears.
When I move the window back from the right to the left (primary with the mouse) everything works ok.

Probably after the move the mouse resets the focus

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
4.23 bug missing-log Read the CONTRIBUTING.md file for instructions
Projects
None yet
Development

No branches or pull requests

3 participants