sway icon indicating copy to clipboard operation
sway copied to clipboard

No input in focused window

Open jficz opened this issue 4 years ago • 18 comments

  • Sway Version: 1.7, NixOS

  • Description:

Sometimes, when I switch to another workspace, the focused window on that workspace does not receive any input (keyboard or mouse) even though according to the border colors the window should be focused. Switching to another workspace and back usually helps.

I have not found a way to replicate this behavior, it is seemingly random.

Subjectively It is most likely to happen if there is only one window on the "target" workspace but with lesser rate it also happens when there are more. As far as I can tell this only happens with native Wayland windows regardless of what runs in them (Browser, Electron apps, terminal, ...) but I use X11 apps very sparsely so statistically speaking I really can't say anything about XWayland windows.

It is (probably) not related to multi-monitor setup as I've encountered this on all display arrangements I use, including a single laptop screen.

As soon as I find a way to replicate this reliably, I'll post all the requested logs and start playing with the setup.

jficz avatar Apr 28 '22 15:04 jficz

I have experienced this when switching away from Telegram window (even though it doesn't use Xwayland), but that also used to happen in i3-wm under X11.

IlyaMZP avatar May 14 '22 07:05 IlyaMZP

I'm using Fedora 36 and I have also experienced this when using GNOME Terminal, lxpolkit and VSCode (and I can't work without VSCode, and I can't use my system without lxpolkit!).

ghost avatar Jun 19 '22 14:06 ghost

I also experience this occasionally on my Fedora 36 setup, but I can't ever recall it ever happening on my Arch setup, which is pretty similar in general. I also can't find a way to consistently reproduce it.

joanbm avatar Jul 21 '22 17:07 joanbm

It happens regularly for me, hundreds of times per session. It's almost (I say almost but I can't remember an instance where the keyboard triggered this problem) always when I use the mouse to change the focused window.

chrisr87 avatar Jan 12 '23 04:01 chrisr87

interesting, I must say that lately (weeks, maybe a month) I don't actually remember this happening... (I'm on v1.8 currently)

Something else happens though - when I switch workspaces, the window under the mouse cursor does not receive focus until the cursor is moved outside of that window and back. But I guess this is unrelated.

jficz avatar Jan 12 '23 14:01 jficz