diff options
author | dec05eba <dec05eba@protonmail.com> | 2024-07-31 23:07:43 +0200 |
---|---|---|
committer | dec05eba <dec05eba@protonmail.com> | 2024-07-31 23:07:43 +0200 |
commit | 1cd15dab15d278a6b0cbac6032d6916b6e92de44 (patch) | |
tree | 322d58016a25c1d316424b5eec4348607c392996 /src | |
parent | 6d824b98b633897c8c2a68eaa7b31b5efb9a7bb7 (diff) |
Change state timings
Diffstat (limited to 'src')
-rw-r--r-- | src/main.cpp | 12 |
1 files changed, 4 insertions, 8 deletions
diff --git a/src/main.cpp b/src/main.cpp index 8d8d95d..6e2fc3c 100644 --- a/src/main.cpp +++ b/src/main.cpp @@ -45,10 +45,6 @@ static double min_double(double a, double b) { return a < b ? a : b; } -static float max_float(float a, float b) { - return a > b ? a : b; -} - #define _NET_WM_STATE_REMOVE 0 #define _NET_WM_STATE_ADD 1 #define _NET_WM_STATE_TOGGLE 2 @@ -234,14 +230,14 @@ int main(int argc, char **argv) { const std::array<StateWithPayload, 9> states_to_execute_in_order = { StateWithPayload{State::SLIDE_IN_WINDOW, 0.15}, - StateWithPayload{State::PAUSE, 0.05}, + StateWithPayload{State::PAUSE, 0.03}, StateWithPayload{State::SLIDE_IN_CONTENT, 0.10}, - StateWithPayload{State::FADE_IN_CONTENT, 0.30}, + StateWithPayload{State::FADE_IN_CONTENT, 0.20}, StateWithPayload{State::PAUSE, notification_timeout_sec}, StateWithPayload{State::FADE_OUT_CONTENT, 0.001}, - StateWithPayload{State::SLIDE_OUT_CONTENT, 0.15}, + StateWithPayload{State::SLIDE_OUT_CONTENT, 0.10}, StateWithPayload{State::PAUSE, 0.10}, - StateWithPayload{State::SLIDE_OUT_WINDOW, 0.15}, + StateWithPayload{State::SLIDE_OUT_WINDOW, 0.10}, }; int current_state_index = 0; |