anvil.window_map: use Rectangle::default

This commit is contained in:
Ivan Molodetskikh 2020-01-22 07:22:34 +03:00
parent 52d86d3abf
commit d30567512c
No known key found for this signature in database
GPG Key ID: 02CE38DA47E9D691
1 changed files with 1 additions and 6 deletions

View File

@ -170,12 +170,7 @@ where
pub fn insert(&mut self, toplevel: Kind<R>, location: (i32, i32)) {
let mut window = Window {
location,
input_bbox: Rectangle {
x: 0,
y: 0,
width: 0,
height: 0,
},
input_bbox: Rectangle::default(),
toplevel,
};
window.self_update(self.ctoken, &self.get_size);