-
Notifications
You must be signed in to change notification settings - Fork 1.1k
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
Input are not correctly forwarded to XWayland windows #4926
Comments
Your bug report is missing debug logs. Please add a link to the full debug log file. |
I think I have the same issue.
sway version 1.4 Debug Log:Configuration File:Default Reproduction:What I did in the debug log:
Additional 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. |
Hello, sorry for the late answer I was a bit short at the moment. I can confirm that what @emberfade is reporting is exactly the behavior I was first reporting. |
Same sway version, same problem. I can reproduce this as well and came here for this. Firefox: |
I've tried using git bisect for the first time. So my result may not be accurate. I believe that the commit introducing the bug is not within sway but wlroots swaywm/wlroots@c067fbc |
Same issue here. Config and Debug
Repro
Sway Version
|
Seeing the same problem. I tried to |
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 belonging to the same process, but do not send focus to the remaining window. Fixes swaywm/sway#4926
Please test swaywm/wlroots#2017, at least in my testing the chrome issue did not appear. I am currently on a train, so I can't realy test steam and other apps. |
same here. sway 1.2, wlroots 0.8.1 working. sway 1.4/wlroots 0.10 is not. My steps to reproduce: open hexchat, dismiss the "shall I join a channel" popup after connecting. Input focus goes away and need to switch back and forth between workspaces to make input work again. The first problem I ever had with sway :D keep up the good work :) |
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. |
Arch with sway 1.4 with wlroots 0.10.0-2, this happens to me a lot when using Visual Studio code as well as Firefox |
Similar issue with Signal Desktop and attaching files, clicking onto my wallpaper and back into the main window of the application restores keyboard input focus for me.
Maybe give it a try again, works quite well for me on arch. |
@norpol ?? |
Same issue with JetBrains >=2019.2.X IDE |
This reflects what i3 does [1]. [1]: https://github.com/i3/i3/blob/b3faf9fca9254679a4715486a4de80ebaee70410/src/handlers.c#L1076 Fixes: c067fbc ("xwm: allow applications to change focus between their own surfaces") Closes: swaywm/sway#4926
Can you try swaywm/wlroots#2035? |
This reflects what i3 does [1]. [1]: https://github.com/i3/i3/blob/b3faf9fca9254679a4715486a4de80ebaee70410/src/handlers.c#L1076 Fixes: c067fbc ("xwm: allow applications to change focus between their own surfaces") Closes: swaywm/sway#4926
This reflects what i3 does [1]. [1]: https://github.com/i3/i3/blob/b3faf9fca9254679a4715486a4de80ebaee70410/src/handlers.c#L1076 Fixes: c067fbc ("xwm: allow applications to change focus between their own surfaces") Closes: swaywm/sway#4926
Is there going to be a patch release with this fix? This is a major regression from Sway 1.2, and makes many applications practically unusable, with no apparent workaround (other than downgrading Sway). |
I'm thinking about it. We'll discuss with the other core contributors. |
Also, considering that wlroots requires Wayland 1.18, it is impossible to easily update on Ubuntu 19.04 (the latest), in order to get this fix. |
This reflects what i3 does [1]. [1]: https://github.com/i3/i3/blob/b3faf9fca9254679a4715486a4de80ebaee70410/src/handlers.c#L1076 Fixes: c067fbc ("xwm: allow applications to change focus between their own surfaces") Closes: swaywm/sway#4926 (cherry picked from commit 68820d6)
This reflects what i3 does [1]. [1]: https://github.com/i3/i3/blob/b3faf9fca9254679a4715486a4de80ebaee70410/src/handlers.c#L1076 Fixes: c067fbc ("xwm: allow applications to change focus between their own surfaces") Closes: swaywm/sway#4926
I've encounter this in some DirectX games, is there some workaround or should it just work? |
Have you tried running the game via |
@ammgws I just tried it, it's working now. Thank you :) |
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 !
The text was updated successfully, but these errors were encountered: