summaryrefslogtreecommitdiffhomepage
path: root/patch/systray.c
diff options
context:
space:
mode:
Diffstat (limited to 'patch/systray.c')
-rw-r--r--patch/systray.c16
1 files changed, 9 insertions, 7 deletions
diff --git a/patch/systray.c b/patch/systray.c
index c96509d..0e70539 100644
--- a/patch/systray.c
+++ b/patch/systray.c
@@ -38,17 +38,18 @@ resizerequest(XEvent *e)
}
Monitor *
-systraytomon(Monitor *m) {
+systraytomon(Monitor *m)
+{
Monitor *t;
int i, n;
- if(!systraypinning) {
- if(!m)
+ if (!systraypinning) {
+ if (!m)
return selmon;
return m == selmon ? m : NULL;
}
- for(n = 1, t = mons; t && t->next; n++, t = t->next) ;
- for(i = 1, t = mons; t && t->next && i < systraypinning; i++, t = t->next) ;
- if(systraypinningfailfirst && n < systraypinning)
+ for (n = 1, t = mons; t && t->next; n++, t = t->next) ;
+ for (i = 1, t = mons; t && t->next && i < systraypinning; i++, t = t->next) ;
+ if (systraypinningfailfirst && n < systraypinning)
return mons;
return t;
}
@@ -184,7 +185,8 @@ updatesystrayiconstate(Client *i, XPropertyEvent *ev)
}
Client *
-wintosystrayicon(Window w) {
+wintosystrayicon(Window w)
+{
Client *i = NULL;
if (!showsystray || !w)