indent --no-tabs -linux

This commit is contained in:
Sascha Kruse 2012-07-18 00:47:59 +02:00
parent 160796a058
commit 841eea2f3e
2 changed files with 15 additions and 16 deletions

27
dunst.c
View File

@ -592,9 +592,9 @@ void handleXEvents(void)
if (XLookupKeysym(&ev.xkey, 0) == history_key) { if (XLookupKeysym(&ev.xkey, 0) == history_key) {
history_pop(); history_pop();
} }
if (XLookupKeysym(&ev.xkey, 0) == all_key) { if (XLookupKeysym(&ev.xkey, 0) == all_key) {
move_all_to_history(); 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->appname);
free(n->summary); free(n->summary);
free(n->body); 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) { for (iter = notification_queue->head; iter; iter = iter->next) {
notification *n = (notification *) iter->data; notification *n = (notification *) iter->data;
if (n->id == id) { if (n->id == id) {
l_move(notification_queue, notification_history, l_move(notification_queue, notification_history, iter);
iter);
target = n; target = n;
break; break;
} }
@ -954,11 +954,11 @@ void setup(void)
GrabModeAsync); GrabModeAsync);
} }
if (all_key != NoSymbol) { if (all_key != NoSymbol) {
code = XKeysymToKeycode(dc->dpy, all_key); code = XKeysymToKeycode(dc->dpy, all_key);
XGrabKey(dc->dpy, code, mask, root, True, GrabModeAsync, XGrabKey(dc->dpy, code, mask, root, True, GrabModeAsync,
GrabModeAsync); GrabModeAsync);
} }
} }
void map_win(void) void map_win(void)
@ -1069,9 +1069,9 @@ void parse_cmdline(int argc, char *argv[])
case 'K': case 'K':
history_key_string = optarg; history_key_string = optarg;
break; break;
case 'A': case 'A':
all_key_string = optarg; all_key_string = optarg;
break; break;
case 'g': case 'g':
geom = optarg; geom = optarg;
break; break;
@ -1355,8 +1355,7 @@ int main(int argc, char *argv[])
key = key_string ? XStringToKeysym(key_string) : NoSymbol; key = key_string ? XStringToKeysym(key_string) : NoSymbol;
history_key = history_key =
history_key_string ? XStringToKeysym(history_key_string) : NoSymbol; history_key_string ? XStringToKeysym(history_key_string) : NoSymbol;
all_key = all_key = all_key_string ? XStringToKeysym(all_key_string) : NoSymbol;
all_key_string ? XStringToKeysym(all_key_string) : NoSymbol;
screensaver_info = XScreenSaverAllocInfo(); screensaver_info = XScreenSaverAllocInfo();
initdbus(); initdbus();

View File

@ -22,8 +22,8 @@
# use xev to find the names for keys # use xev to find the names for keys
key = space key = space
# key to clear all messages # key to clear all messages
all_key = Menu all_key = Menu
# key to redisplay last message(s) # key to redisplay last message(s)
history_key = grave history_key = grave