Add WindowBuilder::with_outer_position (#1866)

This commit is contained in:
Michal Srb 2021-03-25 21:18:51 +03:00 committed by GitHub
parent 86748fbc68
commit 0d634a0061
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
8 changed files with 108 additions and 16 deletions

View file

@ -832,6 +832,10 @@ unsafe fn init<T: 'static>(
force_window_active(win.window.0);
}
if let Some(position) = attributes.position {
win.set_outer_position(position);
}
Ok(win)
}