Clearify structures in dunst:run
This commit is contained in:
parent
714731e8fc
commit
43b9c45cd8
10
src/dunst.c
10
src/dunst.c
@ -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)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user