diff options
| author | Federico Angelilli <code@fedang.net> | 2024-03-14 15:44:41 +0100 |
|---|---|---|
| committer | Federico Angelilli <code@fedang.net> | 2024-03-14 15:44:41 +0100 |
| commit | c7a8b75933b3bd963e19f1a9d85f3b610a08e669 (patch) | |
| tree | 91de053f1caaf655eaeb1bbd3458c49362b22e2a /src/state.h | |
| parent | 93c4dc6893e733f563e70c315537922d55adfab2 (diff) | |
Change animation code and refactor state
Diffstat (limited to 'src/state.h')
| -rw-r--r-- | src/state.h | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/src/state.h b/src/state.h index 14f7d4d..ef621f4 100644 --- a/src/state.h +++ b/src/state.h @@ -13,7 +13,8 @@ struct State { Window *win; Drawer *draw; GList *btns; - gint id; + gint idle_id; + gint anim_id; bool relayout; }; @@ -25,7 +26,9 @@ void state_remove_button(State *state, Button *btn); void state_order_button(State *state); -void state_redraw(State *state, bool changed_layout); +void state_request_redraw(State *state, bool relayout); + +void state_request_animation(State *state); void state_destroy(State *state); |
