From 841eea2f3eed35a219338a73d33b77f21029b838 Mon Sep 17 00:00:00 2001 From: Sascha Kruse Date: Wed, 18 Jul 2012 00:47:59 +0200 Subject: [PATCH] indent --no-tabs -linux --- dunst.c | 27 +++++++++++++-------------- dunstrc | 4 ++-- 2 files changed, 15 insertions(+), 16 deletions(-) diff --git a/dunst.c b/dunst.c index 2281234..f94b3c7 100644 --- a/dunst.c +++ b/dunst.c @@ -592,9 +592,9 @@ void handleXEvents(void) if (XLookupKeysym(&ev.xkey, 0) == history_key) { history_pop(); } - if (XLookupKeysym(&ev.xkey, 0) == all_key) { - move_all_to_history(); - } + if (XLookupKeysym(&ev.xkey, 0) == all_key) { + move_all_to_history(); + } } } } @@ -640,7 +640,8 @@ void history_pop(void) } } -void free_notification(notification *n) { +void free_notification(notification * n) +{ free(n->appname); free(n->summary); free(n->body); @@ -755,8 +756,7 @@ int close_notification_by_id(int id, int reason) for (iter = notification_queue->head; iter; iter = iter->next) { notification *n = (notification *) iter->data; if (n->id == id) { - l_move(notification_queue, notification_history, - iter); + l_move(notification_queue, notification_history, iter); target = n; break; } @@ -954,11 +954,11 @@ void setup(void) GrabModeAsync); } - if (all_key != NoSymbol) { - code = XKeysymToKeycode(dc->dpy, all_key); + if (all_key != NoSymbol) { + code = XKeysymToKeycode(dc->dpy, all_key); XGrabKey(dc->dpy, code, mask, root, True, GrabModeAsync, GrabModeAsync); - } + } } void map_win(void) @@ -1069,9 +1069,9 @@ void parse_cmdline(int argc, char *argv[]) case 'K': history_key_string = optarg; break; - case 'A': - all_key_string = optarg; - break; + case 'A': + all_key_string = optarg; + break; case 'g': geom = optarg; break; @@ -1355,8 +1355,7 @@ int main(int argc, char *argv[]) key = key_string ? XStringToKeysym(key_string) : NoSymbol; history_key = history_key_string ? XStringToKeysym(history_key_string) : NoSymbol; - all_key = - all_key_string ? XStringToKeysym(all_key_string) : NoSymbol; + all_key = all_key_string ? XStringToKeysym(all_key_string) : NoSymbol; screensaver_info = XScreenSaverAllocInfo(); initdbus(); diff --git a/dunstrc b/dunstrc index f51c415..7166f4e 100644 --- a/dunstrc +++ b/dunstrc @@ -22,8 +22,8 @@ # use xev to find the names for keys key = space - # key to clear all messages - all_key = Menu + # key to clear all messages + all_key = Menu # key to redisplay last message(s) history_key = grave