winit icon indicating copy to clipboard operation
winit copied to clipboard

Intense `WM_PAINT` msg in `thread_event_target_callback`

Open wusyong opened this issue 2 years ago • 0 comments

I encounter a delayed mouse interaction when using webview2 with winit. Here's the branch to reproduce: https://github.com/tauri-apps/wry/tree/winit-reproduce Run cargo r --example hello_world and press any tab or list constantly will find it gets a few seconds delay.

I found if we reduce RedrawWindow calls in thread_event_target_callback, it can resolve this issue. Could we just call RedrawWindow only when thread_event_target_callback need to handle the message instead of calling RedrawWindow no matter what?

wusyong avatar Jul 07 '22 12:07 wusyong