Skip to content

Commit

Permalink
On Window, filter by paint messages when draining paint messages
Browse files Browse the repository at this point in the history
This seems to prevent PeekMessage from dispatching unrelated sent messages
  • Loading branch information
filnet committed Feb 28, 2020
1 parent ac13bdf commit 801f11d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/platform_impl/windows/event_loop.rs
Original file line number Diff line number Diff line change
Expand Up @@ -252,7 +252,7 @@ impl<T: 'static> EventLoop<T> {
ptr::null_mut(),
winuser::WM_PAINT,
winuser::WM_PAINT,
winuser::PM_REMOVE,
winuser::PM_QS_PAINT | winuser::PM_REMOVE,
) {
break;
}
Expand Down Expand Up @@ -1715,7 +1715,7 @@ unsafe extern "system" fn thread_event_target_callback<T: 'static>(
ptr::null_mut(),
winuser::WM_PAINT,
winuser::WM_PAINT,
winuser::PM_REMOVE,
winuser::PM_QS_PAINT | winuser::PM_REMOVE,
) {
break;
}
Expand Down

0 comments on commit 801f11d

Please sign in to comment.