mirror of
https://github.com/italicsjenga/winit-sonoma-fix.git
synced 2024-12-24 06:11:30 +11:00
Merge pull request #76 from glennw/fix-x11-window-res
Only reject modes based on resolution when using fullscreen. This fixes ...
This commit is contained in:
commit
391c42d177
|
@ -97,7 +97,7 @@ impl Window {
|
||||||
best_mode = i;
|
best_mode = i;
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
if best_mode == -1 {
|
if best_mode == -1 && builder.monitor.is_some() {
|
||||||
return Err(format!("Could not find a suitable graphics mode"));
|
return Err(format!("Could not find a suitable graphics mode"));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue