diff options
| -rw-r--r-- | dwm.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -937,11 +937,11 @@ buttonpress(XEvent *e) c = m->clients; do { - if (!ISVISIBLE(c)) + if (!c || !ISVISIBLE(c)) continue; else x += (1.0 / (double)m->bt) * m->btw; - } while (ev->x > x && (c = c->next)); + } while (c && ev->x > x && (c = c->next)); if (c) { click = ClkWinTitle; |
