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

Focus stays on previous window when switching workspaces with focusworkspaceoncurrentmonitor #72

Open
kepi opened this issue Feb 17, 2024 · 0 comments

Comments

@kepi
Copy link

kepi commented Feb 17, 2024

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

  1. I move focus (i.e. with mouse cursor) to terminal B on workspace 2 on monitor R
  2. I press SUPER + 1

What should happend

  1. workspace 1 with terminal A should now be on monitor R
  2. workspace 2 with terminal B should now be on monitor L
  3. mouse cursor should be on terminal A
  4. 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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant