Workspace and window focus out of sync #2622

Open
aureooms opened this Issue Jan 2, 2017 · 11 comments

Projects

None yet

5 participants

@aureooms
aureooms commented Jan 2, 2017

Output of i3 --moreversion 2>&- || i3 --version:

Binary i3 version: 4.13 (2016-11-08) © 2009 Michael Stapelberg and contributors
Running i3 version: 4.13 (2016-11-08) (pid 680)to abort…)
Loaded i3 config: /home/aureooms/.config/i3/config (Last modified: Mon 02 Jan 2017 02:45:35 PM CET, 15619 seconds ago)

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

URL to a logfile as per http://i3wm.org/docs/debugging.html:

REPLACE: URL to logfile

What I did:

I opened several windows.

What I saw:

Windows randomly open in last focused workspace instead of current. Focus randomly switches back to previous open window when opening a new one. Urgency color gets set randomly on the last focused workspace when opening a window in the current workspace.

What I expected instead:
Focus should be on the opened window and window should open in the focused workspace.

@i3bot
i3bot commented Jan 2, 2017

I don’t see a link to logs.i3wm.org. Did you follow http://i3wm.org/docs/debugging.html? (In case you actually provided a link to a logfile, please ignore me.)

@aureooms
aureooms commented Jan 2, 2017 edited

I'll add a log file when I have time.

@stapelberg
Member

Thanks. We’ll need a logfile to make sense of this issue.

Please try to provide a minimum logfile, using the i3 default configuration. If a specific configuration is required, please try to make only the necessary changes to the i3 default configuration in order to reproduce the problem.

@pvl1
pvl1 commented Jan 8, 2017

Do you think Mouse focus might be playing tricks on you with your palm hitting the touchpad?
Just a thought

@aureooms
aureooms commented Jan 8, 2017

I have the same issue on laptop and desktop (no touchpad).

@aureooms

Reproducing seems to work only with terminator. Opening a new terminator instance focuses the previously focused terminator instance, whatever the currently focused app is.

@aureooms

(Probably a terminator issue then)

@Airblader
Member

Can you clarify what happens with workspace focus? Do you mean the focused window is then on a non-visible workspace? That would, either way, be something we should look at.

@aureooms

Depends if the currently focused window is on the same workspace as the last focused terminator window.

CASE 1. If I open terminator on workspace 1, then firefox on workspace 4, then try to open a second terminator window on workspace 4, the new terminator window is opened on workspace 1, the urgency get set on workspace 1, current workspace stays worskpace 4 but if I go to workspace 1 the focus is on the first opened terminator window.

CASE 2. If I open terminator on workspace 1, then firefox on workspace 1, then try to open a second terminator window on workspace 1, the new terminator window is opened on workspace 1 and the focus switches from firefox to the first opened terminator window.

@Airblader
Member

OK, then I misunderstood the issue. This behavior sounds perfectly fine because terminator probably requests this behavior from i3. If you provide the log file we can tell you what mechanism it uses to do that and you can use that to go through its settings or report an issue to make it configurable.

@aureooms

Thanks. I will add a minimal log file.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment