toplevel: send 0x0 size until window has been mapped
This commit is contained in:
parent
a254ebe5ed
commit
96fe270413
2 changed files with 31 additions and 22 deletions
|
|
@ -12,7 +12,8 @@ static BUGS: Lazy<AHashMap<&'static str, Bugs>> = Lazy::new(|| {
|
|||
map.insert(
|
||||
"Alacritty",
|
||||
Bugs {
|
||||
min_size: Some((100, 100)),
|
||||
min_width: Some(100),
|
||||
min_height: Some(100),
|
||||
..Default::default()
|
||||
},
|
||||
);
|
||||
|
|
@ -25,11 +26,13 @@ pub fn get(app_id: &str) -> &'static Bugs {
|
|||
|
||||
pub static NONE: Bugs = Bugs {
|
||||
respect_min_max_size: false,
|
||||
min_size: None,
|
||||
min_width: None,
|
||||
min_height: None,
|
||||
};
|
||||
|
||||
#[derive(Default, Debug)]
|
||||
pub struct Bugs {
|
||||
pub respect_min_max_size: bool,
|
||||
pub min_size: Option<(i32, i32)>,
|
||||
pub min_width: Option<i32>,
|
||||
pub min_height: Option<i32>,
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue