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

Inconsistent keyboard focusing: movefocus doesn't move focus correctly across monitors #755

Open
uwidev opened this issue Jan 31, 2025 · 2 comments

Comments

@uwidev
Copy link

uwidev commented Jan 31, 2025

Describe the bug
Moving focus with keyboard does not focus the closest window from previous focus.

To Reproduce
Assume the following setup

Monitor 1	|	Monitor 2
WinA  WinB	|	WinC  WinD
  1. Make sure your mouse is NOT over a window (see Inconsistent keyboard focusing: follow_mouse issues #754)
  2. Have window focus on WinC
  3. Do movefocus l to move focus left, focus is on WinB
  4. Do movefocus r to move right, focus is on WinD (SHOULD BE WinC)

Also...

  1. Follow steps 1-3, our focus is on WinB
  2. Do movefocus l to move focus left, it doesn't move focus (should be WinA)

When doing this, I see the active workspace number briefly change numbers then change back. To what number, idk. Monitor 2 is workspace 2, but flashes to 4. Monitor 2 is workspace 3 and doesn't seem to change at all?

Expected behavior
Does not alter the original behavior of moving focus. For the first section, step 4 should be focused on WinC. For the second section, we should be able to move from WinB to WinA.

Screenshots
If applicable, add screenshots to help explain your problem.

demo.mp4

Desktop (please complete the following information):

  • Distribution: Arch Linux
  • Window Manager/Desktop Environment: Hyprland

Additional context
Add any other context about the problem here.

@Jas-SinghFSU
Copy link
Owner

What is the issue related to Hyprpanel on this? This to me seems like a Hyprland issue, no? One thing I do notice is that your workspaces are showing up on the wrong monitor which there is currently an issue open for.

@uwidev
Copy link
Author

uwidev commented Feb 1, 2025

I forgot to mention that having HyprPanel NOT running has focus working correctly. It's only when HyprPanel is running when this issue occurs. This does not occur when running regular ags Astal.

And yes, the workspaces not showing up on the right monitor is a separate issue which I have already looked at. I didn't report it on this issue because it isn't relevant to this particular issue.

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

2 participants