diff options
Diffstat (limited to 'engine/src/windowing.rs')
| -rw-r--r-- | engine/src/windowing.rs | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/engine/src/windowing.rs b/engine/src/windowing.rs index 38b8ab1..c541f7f 100644 --- a/engine/src/windowing.rs +++ b/engine/src/windowing.rs @@ -849,6 +849,10 @@ impl ApplicationHandler for App return; }; + if !window.has_focus() { + return; + } + let window_size = window.inner_size(); if let Err(err) = |
