Move field definition on top of function (readability)

This commit is contained in:
Benedikt Heine 2018-11-19 17:15:38 +01:00
parent 711b11c92f
commit d96a29fed5

View File

@ -63,6 +63,8 @@ void wake_up(void)
static gboolean run(void *data) static gboolean run(void *data)
{ {
static gint64 next_timeout = 0;
LOG_D("RUN"); LOG_D("RUN");
dunst_status(S_FULLSCREEN, have_fullscreen_window()); dunst_status(S_FULLSCREEN, have_fullscreen_window());
@ -70,8 +72,6 @@ static gboolean run(void *data)
queues_update(status); queues_update(status);
static gint64 next_timeout = 0;
bool active = queues_length_displayed() > 0; bool active = queues_length_displayed() > 0;
if (active) { if (active) {