Fix issues with redraw_requested when called during EventsCleared (#994)
* Fix issues with redraw_requested when called during EventsCleared * Format * Fix event dispatch after RedrawRequested but before EventsCleared This could happen if the event queue was cleared, we processed WM_PAINT, but the event queue got re-filled before we checked to see it was empty. * Fix paint ordering issues when resizing window * Format
This commit is contained in:
parent
9393b14b01
commit
74a7cf55ea
4 changed files with 58 additions and 23 deletions
|
|
@ -149,7 +149,11 @@ impl Window {
|
|||
winuser::RDW_INTERNALPAINT,
|
||||
);
|
||||
} else {
|
||||
winuser::PostMessageW(self.window.0, *REQUEST_REDRAW_NO_NEWEVENTS_MSG_ID, 0, 0);
|
||||
let mut window_state = self.window_state.lock();
|
||||
if !window_state.queued_out_of_band_redraw {
|
||||
window_state.queued_out_of_band_redraw = true;
|
||||
winuser::PostMessageW(self.window.0, *REQUEST_REDRAW_NO_NEWEVENTS_MSG_ID, 0, 0);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue