Skip to content

Commit

Permalink
handle deferred events after on_frame
Browse files Browse the repository at this point in the history
  • Loading branch information
httnn committed Dec 9, 2024
1 parent ed5f083 commit 10b78e9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/macos/window.rs
Original file line number Diff line number Diff line change
Expand Up @@ -409,8 +409,8 @@ impl WindowState {
pub(super) fn trigger_frame(&self) {
let mut window = crate::Window::new(Window { inner: &self.window_inner });
let mut window_handler = self.window_handler.borrow_mut();
self.send_deferred_events(window_handler.as_mut());
window_handler.on_frame(&mut window);
self.send_deferred_events(window_handler.as_mut());
}

pub(super) fn keyboard_state(&self) -> &KeyboardState {
Expand Down

0 comments on commit 10b78e9

Please sign in to comment.