fix: make windows not resizable
This commit is contained in:
parent
93385bc42c
commit
eb810a1436
3 changed files with 3 additions and 0 deletions
|
|
@ -83,6 +83,7 @@ pub fn run() -> cosmic::iced::Result {
|
||||||
.min_width(1.0)
|
.min_width(1.0)
|
||||||
.max_height(h as f32)
|
.max_height(h as f32)
|
||||||
.max_width(w as f32),
|
.max_width(w as f32),
|
||||||
|
resizable: None,
|
||||||
..Default::default()
|
..Default::default()
|
||||||
}),
|
}),
|
||||||
..Default::default()
|
..Default::default()
|
||||||
|
|
|
||||||
|
|
@ -20,6 +20,7 @@ pub fn main() -> cosmic::iced::Result {
|
||||||
InitialSurface::LayerSurface(_) => todo!(),
|
InitialSurface::LayerSurface(_) => todo!(),
|
||||||
InitialSurface::XdgWindow(w) => {
|
InitialSurface::XdgWindow(w) => {
|
||||||
w.autosize = true;
|
w.autosize = true;
|
||||||
|
w.resizable = None;
|
||||||
w.size_limits = Limits::NONE
|
w.size_limits = Limits::NONE
|
||||||
.min_height(1.0)
|
.min_height(1.0)
|
||||||
.max_height(200.0)
|
.max_height(200.0)
|
||||||
|
|
|
||||||
|
|
@ -23,6 +23,7 @@ pub fn main() -> cosmic::iced::Result {
|
||||||
match &mut settings.initial_surface {
|
match &mut settings.initial_surface {
|
||||||
InitialSurface::XdgWindow(s) => {
|
InitialSurface::XdgWindow(s) => {
|
||||||
s.autosize = true;
|
s.autosize = true;
|
||||||
|
s.resizable = None;
|
||||||
s.size_limits = Limits::NONE.min_height(1.0).min_width(1.0);
|
s.size_limits = Limits::NONE.min_height(1.0).min_width(1.0);
|
||||||
}
|
}
|
||||||
_ => {}
|
_ => {}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue