From 47c5adfb37887fc36bd04bab5d39bbbad88aacee Mon Sep 17 00:00:00 2001 From: werapi Date: Sun, 30 Nov 2025 07:10:46 +0100 Subject: [PATCH] fix: prevent client focus loss on touch interaction with layer surfaces --- src/mango.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/mango.c b/src/mango.c index c251107a..17386923 100644 --- a/src/mango.c +++ b/src/mango.c @@ -5908,7 +5908,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) {