fix: prevent client focus loss on touch interaction with layer surfaces

This commit is contained in:
werapi 2025-11-30 07:10:46 +01:00 committed by Ching Pei Yang
parent 23cfc323be
commit 47c5adfb37

View file

@ -5908,7 +5908,7 @@ void touchdown(struct wl_listener *listener, void *data) {
/* Find the client under the pointer and send the event along. */ /* Find the client under the pointer and send the event along. */
xytonode(lx, ly, &surface, &c, NULL, &sx, &sy); xytonode(lx, ly, &surface, &c, NULL, &sx, &sy);
if (sloppyfocus) if (sloppyfocus && c)
focusclient(c, 0); focusclient(c, 0);
if (surface != NULL) { if (surface != NULL) {