From: Brendan Hansen Date: Fri, 15 Oct 2021 18:50:11 +0000 (-0500) Subject: syncing with desktop X-Git-Url: https://git.brendanfh.com/?a=commitdiff_plain;h=c0434631d72de728246aae24ba6e29542718d62d;p=onyx-wasm-analyzer.git syncing with desktop --- diff --git a/src/app/window_switcher.onyx b/src/app/window_switcher.onyx index 06a50d8..933f80f 100644 --- a/src/app/window_switcher.onyx +++ b/src/app/window_switcher.onyx @@ -46,11 +46,12 @@ Window_Switcher_State :: struct { } select_window :: (use state: ^Window_Switcher_State) { - window := (package app).state.windows_sorted[selected_index]; + app :: package app + window := app.state.windows_sorted[selected_index]; state->toggle(); - (package app).move_window_to_top(window.id); - (package app).focus_window(window.id); + app.move_window_to_top(window.id); + app.focus_window(window.id); } draw :: (use s: ^Window_Switcher_State, window_rectangle: ui.Rectangle) {