diff options
| author | Ivan Kanakarakis <ivan.kanak@gmail.com> | 2012-07-23 16:18:23 +0300 |
|---|---|---|
| committer | Ivan Kanakarakis <ivan.kanak@gmail.com> | 2012-07-23 17:41:56 +0300 |
| commit | 36cbfa862e3eef53c6793f76ed3131da6f07e4c5 (patch) | |
| tree | 0af07dbf23190a16ed887fa6f46b31385e571ff5 /monsterwm.c | |
| parent | 0748bf6e7e2e65fa721f20ca26a86e6ef070d23e (diff) | |
fix clang warnings
Diffstat (limited to 'monsterwm.c')
| -rw-r--r-- | monsterwm.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/monsterwm.c b/monsterwm.c index 61ac75f..b6d71de 100644 --- a/monsterwm.c +++ b/monsterwm.c @@ -575,7 +575,7 @@ unsigned long getcolor(const char* color, const int screen) { void grabbuttons(Client *c) { unsigned int b, m, modifiers[] = { 0, LockMask, numlockmask, numlockmask|LockMask }; - if (CLICK_TO_FOCUS) for (m = 0; m < LENGTH(modifiers); m++) + for (m = 0; CLICK_TO_FOCUS && m < LENGTH(modifiers); m++) if (c != desktops[currdeskidx].curr) XGrabButton(dis, Button1, modifiers[m], c->win, False, BUTTONMASK, GrabModeAsync, GrabModeAsync, None, None); else XUngrabButton(dis, Button1, modifiers[m], c->win); @@ -665,8 +665,8 @@ void maprequest(XEvent *e) { Desktop *d = NULL; Client *c = NULL; Window w = e->xmaprequest.window; - XWindowAttributes wa = {0}; - XClassHint ch = {0}; + XWindowAttributes wa = {0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0}; + XClassHint ch = {0, 0}; Bool follow = False, floating = False; int newdsk = currdeskidx; |
