lower dbus_poll_timeout when a notification is shown.

This increases the responsivness to keyboard and mouse input
This commit is contained in:
Sascha Kruse 2012-06-25 19:32:36 +02:00
parent 9df4ebff18
commit 47a21c2ddf

View File

@ -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 */