From d96a29fed5367aeee1a9cf17f1dae848e7491943 Mon Sep 17 00:00:00 2001 From: Benedikt Heine Date: Mon, 19 Nov 2018 17:15:38 +0100 Subject: [PATCH] Move field definition on top of function (readability) --- src/dunst.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/dunst.c b/src/dunst.c index 5dce077..8ba2d15 100644 --- a/src/dunst.c +++ b/src/dunst.c @@ -63,6 +63,8 @@ void wake_up(void) static gboolean run(void *data) { + static gint64 next_timeout = 0; + LOG_D("RUN"); dunst_status(S_FULLSCREEN, have_fullscreen_window()); @@ -70,8 +72,6 @@ static gboolean run(void *data) queues_update(status); - static gint64 next_timeout = 0; - bool active = queues_length_displayed() > 0; if (active) {