1
//! The size/move mode: the keys that change the window until it is kept or put back.
2

            
3
use super::Intent;
4
use crate::app::App;
5

            
6
86
pub(super) fn handle(app: &mut App, intent: Intent) {
7
86
    match intent {
8
55
        Intent::Drag(change) => app.drag_by(change),
9
15
        Intent::DragDone => app.end_drag(true),
10
7
        Intent::DragCancel => app.end_drag(false),
11
9
        _ => {}
12
    }
13
86
}