Delay of several seconds on GUI keyboard events under Wine

Questions about Wine on Linux
Locked
John Nagle
Level 2
Level 2
Posts: 14
Joined: Wed Apr 20, 2022 1:07 pm

Delay of several seconds on GUI keyboard events under Wine

Post by John Nagle »

I'm getting a delay of several seconds between pressing a key and it appearing on screen in a Rust program running under Wine 9 on Ubuntu 22.04 LTS.

The program works fine on real Windows. It's cross-platform Rust, and works on Linux and MacOS, But Wine is doing something different with the event queue.

Details: https://github.com/rust-windowing/winit/issues/4097
John Nagle
Level 2
Level 2
Posts: 14
Joined: Wed Apr 20, 2022 1:07 pm

Re: Delay of several seconds on GUI keyboard events under Wine

Post by John Nagle »

Additonal info: https://github.com/rust-windowing/winit ... 2626272450

Wine event logging is on, and Wine really is delaying key press events by about 2 seconds. I type "abcdef" at reasonable speed, and it takes about 2 seconds per character for the program to get the KeyPress events. Meanwhile, redraws are being triggered and are happening at about 60 FPS, so the redraw side of things is going fast.
John Nagle
Level 2
Level 2
Posts: 14
Joined: Wed Apr 20, 2022 1:07 pm

Re: Delay of several seconds on GUI keyboard events under Wine

Post by John Nagle »

Trying Wine 10 (stable). No more delay on key events, but something funny is going on with mouse events.
John Nagle
Level 2
Level 2
Posts: 14
Joined: Wed Apr 20, 2022 1:07 pm

Re: Delay of several seconds on GUI keyboard events under Wine

Post by John Nagle »

Additional info: On Wine 10.0, (stable) this problem goes away.

But mouse positions seem to be about 10 pixels off vertically.

More later.
Locked