shell: Enforce some minimum resize sizes
This commit is contained in:
parent
0ebcfa24a3
commit
92019b4286
3 changed files with 23 additions and 4 deletions
|
|
@ -86,8 +86,8 @@ impl PointerGrab<State> for ResizeSurfaceGrab {
|
|||
|
||||
let (min_size, max_size) = (self.window.min_size(), self.window.max_size());
|
||||
|
||||
let min_width = min_size.map(|s| s.w).unwrap_or(1);
|
||||
let min_height = min_size.map(|s| s.h).unwrap_or(1);
|
||||
let min_width = min_size.map(|s| s.w).unwrap_or(360);
|
||||
let min_height = min_size.map(|s| s.h).unwrap_or(240);
|
||||
let max_width = max_size.map(|s| s.w).unwrap_or(i32::max_value());
|
||||
let max_height = max_size.map(|s| s.h).unwrap_or(i32::max_value());
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue