handle window focus (dont run fade and read while not focused)

This commit is contained in:
Green Sky
2025-01-19 19:33:01 +01:00
parent bd6368a8f9
commit d416d3d595
6 changed files with 38 additions and 26 deletions

View File

@@ -112,6 +112,7 @@ struct MainScreen final : public Screen {
bool _show_tool_id_stack {false};
bool _show_tool_demo {false};
bool _window_focused {true};
bool _window_hidden {false};
uint64_t _window_hidden_ts {0};
float _time_since_event {0.f};