Everywhere: Kill app_event_loop on window close
This commit is contained in:
parent
ce44a8db0f
commit
49666d7ea9
6 changed files with 18 additions and 3 deletions
|
@ -13,6 +13,7 @@ U0 @shutdown_callback(U64 o)
|
|||
}
|
||||
}
|
||||
Compositor.DestroyWindow(win);
|
||||
Kill(app_event_loop);
|
||||
Gui.Window.SetFocus(Compositor.GetWindowByTitle("Wallpaper"));
|
||||
}
|
||||
|
||||
|
|
|
@ -19,6 +19,7 @@ U0 @templeos_close_callback(Window* win)
|
|||
Kill(templeos_winmgr_task);
|
||||
Compositor.UnregisterForGlobalInputEvents(win);
|
||||
Compositor.DestroyWindow(win);
|
||||
Kill(app_event_loop);
|
||||
win = NULL;
|
||||
Exit;
|
||||
}
|
||||
|
|
|
@ -132,6 +132,7 @@ U0 window_close(Window* win)
|
|||
Gui.Window.SetFocus(Compositor.GetWindowByTitle("Wallpaper"));
|
||||
Compositor.UnregisterForGlobalInputEvents(win);
|
||||
Compositor.DestroyWindow(win);
|
||||
Kill(app_event_loop);
|
||||
}
|
||||
|
||||
U0 @terminal_vscroll_change(Widget*)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue