Don't use exclusive mode on MacOS--it doesn't play nice with having the UI continue to run

This commit is contained in:
Eric Van Albert
2025-12-18 22:28:05 -05:00
parent 0b6db35b8b
commit 032223c056
+3 -14
View File
@@ -654,20 +654,9 @@ impl WinitOutput<'_> {
.unwrap_or(false)
});
if let Some(monitor) = mh {
#[cfg(not(target_os = "macos"))]
{
screen_output
.window
.set_fullscreen(Some(Fullscreen::Borderless(Some(monitor))));
}
#[cfg(target_os = "macos")]
{
if let Some(video_mode) = monitor.video_modes().next() {
screen_output
.window
.set_fullscreen(Some(Fullscreen::Exclusive(video_mode)));
}
}
screen_output
.window
.set_fullscreen(Some(Fullscreen::Borderless(Some(monitor))));
}
// Paint