Patches for redox

This commit is contained in:
Jeremy Soller 2024-02-10 09:59:11 -07:00
parent 66c8174bea
commit b320c450e3
2 changed files with 3 additions and 11 deletions

2
Cargo.lock generated
View file

@ -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",

View file

@ -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<dyn std::error::Error>> {
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,