From c7a8b75933b3bd963e19f1a9d85f3b610a08e669 Mon Sep 17 00:00:00 2001 From: Federico Angelilli Date: Thu, 14 Mar 2024 15:44:41 +0100 Subject: Change animation code and refactor state --- src/state.h | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) (limited to 'src/state.h') 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); -- cgit v1.2.3