hinto-janai/festival

i3 shortcuts interpreted as search commands when switching workspaces

Opened this issue · 1 comments

OS & Version

Festival v1.3.3
Linux x64
Collection v3
Audio v0
Playlist v0
State v1
Settings v2
512dc7b

Bug

When switching to a workspace containing Festival in i3 using a shortcut such as Super+Key, the "Key" is written to the search. For example Super+0 writes 0 to the search bar.

Steps

Steps to reproduce the behavior:

  1. Open Festival in i3 WM and leave it as the only window in a workspace.
  2. Go to another workspace.
  3. Go back to the workspace where Festival is using a shortcut such as Super+9.

Screenshots

2024-01-23-212805_1920x1080_scrot

Perhaps it has to do with synthetic keypresses in Winit. Similar issue in Alacritty: alacritty/alacritty@fa06178

EDIT: After some testing it seems quite literally discarding KeyboardEvents that are synthetic solve this problem. I'll open a PR. Modified the egui-winit crate though.