Skip to content
Permalink

Comparing changes

This is a direct comparison between two commits made in this repository or its related repositories. View the default comparison for this range or learn more about diff comparisons.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also . Learn more about diff comparisons here.
base repository: rust-windowing/winit
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: bfea1996ccd0bde7dc4cde359ebe2c6292f5ac29
Choose a base ref
..
head repository: rust-windowing/winit
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: f76fa734d22008ec96ff64a6af1cc53e76736144
Choose a head ref
Showing with 1 addition and 5 deletions.
  1. +1 −5 src/platform_impl/macos/app_state.rs
6 changes: 1 addition & 5 deletions src/platform_impl/macos/app_state.rs
Original file line number Diff line number Diff line change
@@ -354,11 +354,7 @@ impl AppState {
pub fn handle_redraw(window_id: WindowId) {
// Redraw request might come out of order from the OS.
// -> Don't go back into the callback when our callstack originates from there
if HANDLER
.in_callback
.compare_exchange(false, true, Ordering::AcqRel, Ordering::Acquire)
.is_ok()
{
if !HANDLER.in_callback.swap(true, Ordering::AcqRel) {
HANDLER
.handle_nonuser_event(EventWrapper::StaticEvent(Event::RedrawRequested(window_id)));
HANDLER.set_in_callback(false);