aboutsummaryrefslogtreecommitdiffstats
path: root/mousefunc.c
diff options
context:
space:
mode:
authorokan2014-09-01 18:17:32 +0000
committerokan2014-09-01 18:17:32 +0000
commite06e779a1cf436c8a3c9e6c8c6628097c1727130 (patch)
tree03f395b028a10c3d3c0dc4ed5125ebdd2a7060c1 /mousefunc.c
parent9012965b9e77a27dca052e625d516bef42b1515f (diff)
downloadcwm-e06e779a1cf436c8a3c9e6c8c6628097c1727130.tar.gz
add explicit paran and drop some empty lines bringing like functions closer
Diffstat (limited to 'mousefunc.c')
-rw-r--r--mousefunc.c9
1 files changed, 3 insertions, 6 deletions
diff --git a/mousefunc.c b/mousefunc.c
index 7096e46..b1678ac 100644
--- a/mousefunc.c
+++ b/mousefunc.c
@@ -16,7 +16,7 @@
* ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF
* OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
*
- * $OpenBSD: mousefunc.c,v 1.74 2014/09/01 18:04:58 okan Exp $
+ * $OpenBSD: mousefunc.c,v 1.75 2014/09/01 18:17:32 okan Exp $
*/
#include <sys/param.h>
@@ -194,7 +194,6 @@ mousefunc_menu_group(struct client_ctx *cc, union arg *arg)
group_hidden_state(gc) ? "%d: [%s]" : "%d: %s",
gc->num, sc->group_names[gc->num]);
}
-
if (TAILQ_EMPTY(&menuq))
return;
@@ -220,16 +219,15 @@ mousefunc_menu_unhide(struct client_ctx *cc, union arg *arg)
old_cc = client_current();
TAILQ_INIT(&menuq);
- TAILQ_FOREACH(cc, &Clientq, entry)
+ TAILQ_FOREACH(cc, &Clientq, entry) {
if (cc->flags & CLIENT_HIDDEN) {
wname = (cc->label) ? cc->label : cc->name;
if (wname == NULL)
continue;
-
menuq_add(&menuq, cc, "(%d) %s",
cc->group ? cc->group->num : 0, wname);
}
-
+ }
if (TAILQ_EMPTY(&menuq))
return;
@@ -257,7 +255,6 @@ mousefunc_menu_cmd(struct client_ctx *cc, union arg *arg)
TAILQ_INIT(&menuq);
TAILQ_FOREACH(cmd, &Conf.cmdq, entry)
menuq_add(&menuq, cmd, "%s", cmd->name);
-
if (TAILQ_EMPTY(&menuq))
return;