From 1410ddc8afcf1cd45731dc1ac9fc925c927c3c13 Mon Sep 17 00:00:00 2001 From: Sascha Kruse Date: Thu, 21 Jun 2012 18:40:36 +0200 Subject: [PATCH] change remove order on keyboard shortcut --- dunst.c | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/dunst.c b/dunst.c index 3feb140..b749ce1 100644 --- a/dunst.c +++ b/dunst.c @@ -464,7 +464,6 @@ void handle_mouse_click(XEvent ev) void handleXEvents(void) { XEvent ev; - l_node *iter; while (XPending(dc->dpy) > 0) { XNextEvent(dc->dpy, &ev); switch (ev.type) { @@ -488,11 +487,9 @@ void handleXEvents(void) case KeyPress: if (XLookupKeysym(&ev.xkey, 0) == key) { if (!l_is_empty(displayed_notifications)) { - for (iter = - displayed_notifications->head; - iter->next; iter = iter->next) ; l_move(displayed_notifications, - notification_history, iter); + notification_history, + displayed_notifications->head); } } if (XLookupKeysym(&ev.xkey, 0) == history_key) {