Focus stays on previous window when switching workspaces with focusworkspaceoncurrentmonitor
Opened this issue · 0 comments
kepi commented
In multimonitor setup, I'm using focusworkspaceoncurrentmonitor
dispatcher to switch workspaces instead of default workspace
one.
Official description:
Focuses the requested workspace on the current monitor, swapping the current workspace to a different monitor if necessary.
When I switch to workspace which is already on current monitor, everything works fine. But when I switch to workspace which is on different monitor, keyboard focus remains on old workspace.
Detailed description
Starting point
- I have two monitors, let's name them L(eft) and R(ight)
- I have terminal A on workspace 1 on monitor L
- I have terminal B on workspace 2 on monitor R
What I do
- I move focus (i.e. with mouse cursor) to terminal B on workspace 2 on monitor R
- I press
SUPER + 1
What should happend
- workspace 1 with terminal A should now be on monitor R
- workspace 2 with terminal B should now be on monitor L
- mouse cursor should be on terminal A
- keyboard focus should be on terminal A
What happens instead
First 3 steps works just fine, but keyboard focus remains on terminal B instead of switching to terminal A which now appears under the cursor.
Relevant configuration
$mainMod = SUPER
# Switch workspaces with mainMod + [0-9]
bind = $mainMod, code:10, focusworkspaceoncurrentmonitor, 1
bind = $mainMod, code:11, focusworkspaceoncurrentmonitor, 2
bind = $mainMod, code:12, focusworkspaceoncurrentmonitor, 3
bind = $mainMod, code:13, focusworkspaceoncurrentmonitor, 4
bind = $mainMod, code:14, focusworkspaceoncurrentmonitor, 5
bind = $mainMod, code:15, focusworkspaceoncurrentmonitor, 6
bind = $mainMod, code:16, focusworkspaceoncurrentmonitor, 7
bind = $mainMod, code:17, focusworkspaceoncurrentmonitor, 8
bind = $mainMod, code:18, focusworkspaceoncurrentmonitor, 9
bind = $mainMod, code:19, focusworkspaceoncurrentmonitor, 10
bind = $mainMod, code:20, focusworkspaceoncurrentmonitor, 11