From 47a21c2ddf9f37a48cec566224e8e7cae993b2a3 Mon Sep 17 00:00:00 2001 From: Sascha Kruse Date: Mon, 25 Jun 2012 19:32:36 +0200 Subject: [PATCH] lower dbus_poll_timeout when a notification is shown. This increases the responsivness to keyboard and mouse input --- dunst.c | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/dunst.c b/dunst.c index 95531e0..91df8e9 100644 --- a/dunst.c +++ b/dunst.c @@ -690,7 +690,11 @@ char *strtrim(char *str) void run(void) { while (True) { - dbus_poll(200); + if (visible) { + dbus_poll(50); + } else { + dbus_poll(200); + } now = time(&now); /* move messages from notification_queue to displayed_notifications */