summaryrefslogtreecommitdiffstats
path: root/winit
diff options
context:
space:
mode:
authorLibravatar Héctor <hector@hecrj.dev>2025-01-06 23:05:32 +0100
committerLibravatar GitHub <noreply@github.com>2025-01-06 23:05:32 +0100
commit634365564ea2bb2284561e8d300cf77a6f7db565 (patch)
treed9478965bbcb80632c6e5c2891036b616b3b8682 /winit
parentb156087fcf10011b2ee53c74198ba9fc443a1caa (diff)
parentdd08f98f0ebb6fb59801bfa030a56267e45a509b (diff)
downloadiced-634365564ea2bb2284561e8d300cf77a6f7db565.tar.gz
iced-634365564ea2bb2284561e8d300cf77a6f7db565.tar.bz2
iced-634365564ea2bb2284561e8d300cf77a6f7db565.zip
Merge pull request #2627 from bbb651/more-window-settings
Add `maximized` and `fullscreen` to `window::Settings`
Diffstat (limited to 'winit')
-rw-r--r--winit/src/conversion.rs6
1 files changed, 6 insertions, 0 deletions
diff --git a/winit/src/conversion.rs b/winit/src/conversion.rs
index 8e6f7aae..01c6abc8 100644
--- a/winit/src/conversion.rs
+++ b/winit/src/conversion.rs
@@ -23,6 +23,12 @@ pub fn window_attributes(
width: settings.size.width,
height: settings.size.height,
})
+ .with_maximized(settings.maximized)
+ .with_fullscreen(
+ settings
+ .fullscreen
+ .then_some(winit::window::Fullscreen::Borderless(None)),
+ )
.with_resizable(settings.resizable)
.with_enabled_buttons(if settings.resizable {
winit::window::WindowButtons::all()