From 1cd15dab15d278a6b0cbac6032d6916b6e92de44 Mon Sep 17 00:00:00 2001 From: dec05eba Date: Wed, 31 Jul 2024 23:07:43 +0200 Subject: Change state timings --- src/main.cpp | 12 ++++-------- 1 file changed, 4 insertions(+), 8 deletions(-) (limited to 'src') 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 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; -- cgit v1.2.3