Make full-screen and window bounds callbacks take a WindowContext
This commit is contained in:
parent
7394bf1cdc
commit
183b9ef809
5 changed files with 98 additions and 103 deletions
|
@ -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) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue