diff --git a/Cargo.lock b/Cargo.lock index 26d6346..cbf0ee6 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -6679,7 +6679,7 @@ dependencies = [ [[package]] name = "winit" version = "0.29.10" -source = "git+https://github.com/pop-os/winit.git?branch=winit-0.29#8987daa8e6a860b8927e040076482cd63b6e734f" +source = "git+https://github.com/pop-os/winit.git?branch=winit-0.29#bdc66109acc85c912264c9e4b864520345bdb45f" dependencies = [ "ahash", "android-activity", diff --git a/src/main.rs b/src/main.rs index 4665ed3..c815efb 100644 --- a/src/main.rs +++ b/src/main.rs @@ -11,7 +11,7 @@ use cosmic::{ keyboard::{self, Modifiers}, subscription, widget::text, - window, Alignment, Background, Color, Length, Point, + window, Alignment, Background, Color, Length, Limits, Point, }, style, theme, widget::{self, button, icon, nav_bar, segmented_button, view_switcher}, @@ -149,15 +149,7 @@ fn main() -> Result<(), Box> { let mut settings = Settings::default(); settings = settings.theme(config.app_theme.theme()); - - #[cfg(target_os = "redox")] - { - // Redox does not support resize if doing CSDs - settings = settings.client_decorations(false); - } - - //TODO: allow size limits on iced_winit - //settings = settings.size_limits(Limits::NONE.min_width(400.0).min_height(200.0)); + settings = settings.size_limits(Limits::NONE.min_width(360.0).min_height(180.0)); let flags = Flags { config_handler,