forked from nannou-org/nannou
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix crash window_coordinates example crash on Linux/Wayland
On Linux/Wayland, it seems that sometimes `window.current_monitor()` can return `None` when nothing has been drawn to the screen yet. When this happens, simply skip most of the logic and draw an empty frame to the screen. The next time `view()` is called, the `current_monitor()` method will then return the correct value. (See rust-windowing/winit#793 for some details.).
- Loading branch information
Showing
1 changed file
with
44 additions
and
43 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters