format
This commit is contained in:
+6
-6
@@ -34,7 +34,7 @@ impl WindowState {
|
||||
full: f,
|
||||
position: p,
|
||||
last_toggle: None,
|
||||
focus_lost: None
|
||||
focus_lost: None,
|
||||
}))
|
||||
}
|
||||
}
|
||||
@@ -165,19 +165,19 @@ pub fn esegui_toggle(
|
||||
let ts = gtk::get_current_event_time();
|
||||
let pos = w_state.get_pos();
|
||||
match pos {
|
||||
Hidden | Hiding => {
|
||||
Hidden | Hiding => {
|
||||
bring_up(window, w_state, ts);
|
||||
crate::tabs::focus_current_tab(&nb);
|
||||
},
|
||||
}
|
||||
UpWithoutFocus => {
|
||||
let f_l = w_state.get_focus_lost() ;
|
||||
let f_l = w_state.get_focus_lost();
|
||||
if f_l.is_some() && f_l.unwrap().elapsed() < Duration::from_millis(200) {
|
||||
hide(window, &w_state);
|
||||
} else {
|
||||
bring_up(window, w_state, ts);
|
||||
crate::tabs::focus_current_tab(&nb);
|
||||
crate::tabs::focus_current_tab(&nb);
|
||||
}
|
||||
},
|
||||
}
|
||||
Up => hide(window, &w_state),
|
||||
_ => {}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user