llyyr (@llyyr) commented about dlls/winewayland.drv/wayland_keyboard.c:
pthread_mutex_lock(&keyboard->mutex); keyboard->focused_hwnd = hwnd;
- /* Store pressed keys to be processed after we receive the modifier state. */
How is this information used by winewayland? The protocol does not guarantee that the keys in the array are in the order they were pressed, this information only exists for things like on screen keyboards that may want to e.g. highlight currently held keys.