sway: Input are not correctly forwarded to XWayland windows
Hello,
I’m currently testing the 1.3 version, and I have found a what I think could be a bug : When a popup is spawned by a XWayland window and I close it, Sway refocus the window that spawned the popup. Unfortunately, the keyboard is not sending any input to the window even if sway is marking this window as being currently focused.
I can reproduce this issue with several application on current release-candidate like vscode for instance.
Let me know if I can provide some details about this issue !
> swaymsg -t get_version
sway version 1.3-rc3
About this issue
- Original URL
- State: closed
- Created 4 years ago
- Reactions: 6
- Comments: 21 (6 by maintainers)
Commits related to this issue
- xwm: correctly send focus event to new window Even if we allow the focus change to the new window, we have to send the focus explicitly. Otherwise the focus may get lost when we close a window belong... — committed to Emantor/wlroots by Emantor 4 years ago
- xwayland: ignore pointer focus changes This reflects what i3 does [1]. [1]: https://github.com/i3/i3/blob/b3faf9fca9254679a4715486a4de80ebaee70410/src/handlers.c#L1076 Fixes: c067fbc010da ("xwm: al... — committed to emersion/wlroots by emersion 4 years ago
- xwayland: ignore pointer focus changes This reflects what i3 does [1]. [1]: https://github.com/i3/i3/blob/b3faf9fca9254679a4715486a4de80ebaee70410/src/handlers.c#L1076 Fixes: c067fbc010da ("xwm: al... — committed to emersion/wlroots by emersion 4 years ago
- xwayland: ignore pointer focus changes This reflects what i3 does [1]. [1]: https://github.com/i3/i3/blob/b3faf9fca9254679a4715486a4de80ebaee70410/src/handlers.c#L1076 Fixes: c067fbc010da ("xwm: al... — committed to swaywm/wlroots by emersion 4 years ago
- xwayland: ignore pointer focus changes This reflects what i3 does [1]. [1]: https://github.com/i3/i3/blob/b3faf9fca9254679a4715486a4de80ebaee70410/src/handlers.c#L1076 Fixes: c067fbc010da ("xwm: al... — committed to emersion/wlroots by emersion 4 years ago
- xwayland: ignore pointer focus changes This reflects what i3 does [1]. [1]: https://github.com/i3/i3/blob/b3faf9fca9254679a4715486a4de80ebaee70410/src/handlers.c#L1076 Fixes: c067fbc010da ("xwm: al... — committed to filips/wlroots by emersion 4 years ago
I think I have the same issue.
sway version 1.4
Debug Log:
sway.log
Configuration File:
Default
Reproduction:
What I did in the debug log:
$ firefoxAdditional Information:
This happened with other XWayland windows as well.
It is neccessary to move the mouse onto the new window. Otherwise the main window will take input from the keyboard as usual when the second window is closed.
Edit: Be more specific that it is about the input from the keyboard.
Can you try https://github.com/swaywm/wlroots/pull/2035?
I’m on Arch with wlroots 0.10.0-2 and sway 1.4-7 and this happens to me maybe 1 out of 20 times when opening a new tab in Firefox (using X11Wayland for it because native Wayland support was terrible last time I tried it.) The Firefox window is focused (blue title bar) with the cursor flashing in the address bar, but won’t accept input until I focus another window and switch back.
@ammgws I just tried it, it’s working now. Thank you 😃