Make full-screen and window bounds callbacks take a WindowContext

This commit is contained in:
Antonio Scandurra 2023-04-14 11:56:31 +02:00
parent 7394bf1cdc
commit 183b9ef809
5 changed files with 98 additions and 103 deletions

View file

@ -333,8 +333,7 @@ pub fn initialize_workspace(
auto_update::notify_of_any_new_update(cx.weak_handle(), cx);
let window_id = cx.window_id();
vim::observe_keystrokes(window_id, cx);
vim::observe_keystrokes(cx);
cx.on_window_should_close(|workspace, cx| {
if let Some(task) = workspace.close(&Default::default(), cx) {