feat: Add window drag support from winit

Exposes access to the winit window's window_drag method as an action.
This commit is contained in:
Michael Aaron Murphy 2022-10-06 20:38:21 +02:00
parent 77c838011f
commit 7ea7dbef57
No known key found for this signature in database
GPG key ID: B2732D4240C9212C
3 changed files with 16 additions and 0 deletions

View file

@ -615,6 +615,9 @@ pub fn run_command<A, E>(
}
},
command::Action::Window(action) => match action {
window::Action::Drag => {
let _res = window.drag_window();
}
window::Action::Resize { width, height } => {
window.set_inner_size(winit::dpi::LogicalSize {
width,