diff --git a/src/mango.c b/src/mango.c index 4e41ff32..106ceaac 100644 --- a/src/mango.c +++ b/src/mango.c @@ -5248,7 +5248,7 @@ void touchdown(struct wl_listener *listener, void *data) { /* Find the client under the pointer and send the event along. */ xytonode(lx, ly, &surface, &c, NULL, &sx, &sy); - if (sloppyfocus) + if (sloppyfocus && c) focusclient(c, 0); if (surface != NULL) {