Recent Keyboard Stream Mangling

within the last four-five days I have been experiencing intermittently, an issue where switching focus between windows sometimes brings about mangled keyboard output. I initially thought that it was a problem within the VM because it was most noticeable in neovim, when I typed out certain characters they would produce different outcomes. I tried updating to newest neovim version and even downgrading to the older debian repo provided version but all versions I tried still had the same issue. I noticed that the same issue was occurring with my browser vm, I use vimium for keyboard bindings on librewolf and when I initially switch focus to it from another vm sometimes it is unresponsive to my keyboard bindings leading me to believe the issue is not one stemming from Neovim. I tried refreshing my vm template and appvm, this did not work. I also tried changing from deb-12 based template to fedora-40, they have the same issue. Notably this issue is not present in Dom0.

The issue can be fixed by switching focus to and from different windows until it works again.

I have also noticed post original post that my mouse scroll wheel is behaving in a similar manner, sometimes when I switch focus to my browser the scroll wheel seems to be mapped to one page back and other times it seems to function normally (scrolls the page). While I am 100% sure that my neovim keyboard bindings are not being carried out properly I do not share this certainty with my browser mouse bindings, in other words, this behavior may or may not be a default bind of the browser and while it seems symptomatic of the same affliction, it may be unrelated.

I can send mouse xinput events to unfocused windows on i3 using my scroll wheel without shifting focus to the new window, which result in the back one page button, pressed for each tick of scroll inputed.

Machine-Details:
wm: i3

latest stable updates

uname -a
Linux dom0 6.6.68-1.qubes.fc37.x86_64 #1 SMP PREEMPT_DYNAMIC Thu Jan 2 07:00:16 GMT 2025 x86
_64 x86_64 x86_64 GNU/Linux

1 Like