diff options
author | okan <okan> | 2008-07-11 14:21:28 +0000 |
---|---|---|
committer | okan <okan> | 2008-07-11 14:21:28 +0000 |
commit | b23fad398789ed8d7412813e5b178a38a6667ee7 (patch) | |
tree | 4abba8dd92715e6dc2a272a487b00542b06d40db /mousefunc.c | |
parent | 734f45ab4bdaf25835e90a56a1803de23ff49975 (diff) | |
download | cwm-b23fad398789ed8d7412813e5b178a38a6667ee7.tar.gz cwm-b23fad398789ed8d7412813e5b178a38a6667ee7.tar.xz cwm-b23fad398789ed8d7412813e5b178a38a6667ee7.zip |
spacing, declaration lineup to be consistent throughout cwm,
readability, and a bit of knf. ok oga@
Diffstat (limited to 'mousefunc.c')
-rw-r--r-- | mousefunc.c | 20 |
1 files changed, 12 insertions, 8 deletions
diff --git a/mousefunc.c b/mousefunc.c index af331d5..e7efacd 100644 --- a/mousefunc.c +++ b/mousefunc.c @@ -63,10 +63,12 @@ mousefunc_menu_group(struct client_ctx *cc, void *arg) void mousefunc_menu_unhide(struct client_ctx *cc, void *arg) { - struct menu *mi; - struct menu_q menuq; - char *wname; - struct client_ctx *old_cc = client_current(); + struct client_ctx *old_cc; + struct menu *mi; + struct menu_q menuq; + char *wname; + + old_cc = client_current(); TAILQ_INIT(&menuq); TAILQ_FOREACH(cc, &Clientq, entry) @@ -96,19 +98,21 @@ mousefunc_menu_unhide(struct client_ctx *cc, void *arg) if (old_cc != NULL) client_ptrsave(old_cc); client_ptrwarp(cc); - } else + } else { while ((mi = TAILQ_FIRST(&menuq)) != NULL) { TAILQ_REMOVE(&menuq, mi, entry); xfree(mi); } + } } void mousefunc_menu_cmd(struct client_ctx *cc, void *arg) { - struct menu *mi; - struct menu_q menuq; - struct cmd *cmd; + struct menu *mi; + struct menu_q menuq; + struct cmd *cmd; + conf_reload(&Conf); TAILQ_INIT(&menuq); |