Clearify structures in dunst:run

This commit is contained in:
Benedikt Heine 2017-11-26 20:44:56 +01:00
parent 714731e8fc
commit 43b9c45cd8

View File

@ -60,7 +60,7 @@ gboolean run(void *data)
timeout_cnt--; timeout_cnt--;
} }
if (queues_length_displayed() > 0 && !xctx.visible) { if (!xctx.visible && queues_length_displayed() > 0) {
x_win_show(); x_win_show();
} }
@ -86,8 +86,12 @@ gboolean run(void *data)
} }
} }
/* always return false to delete timers */ /* If the execution got triggered by g_timeout_add,
return false; * we have to remove the timeout (which is actually a
* recurring interval), as we have set a new one
* by ourselves.
*/
return G_SOURCE_REMOVE;
} }
gboolean pause_signal(gpointer data) gboolean pause_signal(gpointer data)