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

Closing a window doesn't reassign focus properly #560

Open
wavexx opened this issue Jan 21, 2024 · 2 comments
Open

Closing a window doesn't reassign focus properly #560

wavexx opened this issue Jan 21, 2024 · 2 comments

Comments

@wavexx
Copy link
Contributor

wavexx commented Jan 21, 2024

I noticed the following behavior in a3614d12151f44a1d8472bf33a0d5d01c9a07d9c (and earlier - can't say when this started).

  • Close a floating window in a region with three windows (1 floating, two tiled - not sure if the floating window is a requirement)
  • Next window in the region is highlighted (border color and bar title is updated)
  • The window though doesn't receive keyboard focus
  • You need a focus cycle to fix things

I'm not sure where the focus actually is in that scenario, since it's pretty rare and I had trouble reproducing it. I had this behavior three times so far, but I didn't have an editing widgets of sorts on the other window to actually say if the focus is on the wrong window or just unset (or set to the root window I guess?).

@LordReg
Copy link
Contributor

LordReg commented Jan 29, 2024

Does this happen with a particular program? Also, what focus_mode are you using?

@wavexx
Copy link
Contributor Author

wavexx commented Jan 29, 2024

focus_mode is default.

I have "warp_focus=1" but "workspace_clamp=0" (so it shouldn't have any effect, you just mentioning).

I didn't notice any particular program being affected. Usually the last window which is highlighted, but doesn't receive keyboard focus is a terminal, which is why I notice quickly it doesn't work as it should.

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