1
1
mirror of https://github.com/wez/wezterm.git synced 2024-12-27 23:46:31 +03:00

windows: adjust wait mask to include posted messages

This improves latency in situations where other applications
are using eg: SetWindowPos on wezterm's window handle.

refs: https://github.com/wez/wezterm/issues/1013
refs: https://github.com/wez/wezterm/issues/1398
refs: https://github.com/wez/wezterm/issues/1484 (maybe; cannot
reproduce, but I don't want to install a window manager)
This commit is contained in:
Wez Furlong 2022-01-07 16:39:11 -07:00
parent 33dd3f393c
commit 67b8c453ca

View File

@ -90,7 +90,13 @@ impl Connection {
fn wait_message(&self) {
unsafe {
MsgWaitForMultipleObjects(1, &self.event_handle, 0, INFINITE, QS_ALLEVENTS);
MsgWaitForMultipleObjects(
1,
&self.event_handle,
0,
INFINITE,
QS_ALLEVENTS | QS_ALLINPUT | QS_ALLPOSTMESSAGE,
);
}
}