From 9d138ac95a4575f61893278791d23bd70d02d286 Mon Sep 17 00:00:00 2001 From: Alexander Courtis Date: Thu, 6 Aug 2020 15:41:04 +1000 Subject: [PATCH] #31 independents retain focus while mouse is over them --- dwl.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/dwl.c b/dwl.c index 813405b..15c446b 100644 --- a/dwl.c +++ b/dwl.c @@ -993,7 +993,7 @@ motionnotify(uint32_t time) cursor->y - c->surface.xwayland->y - c->bw, &sx, &sy); /* Otherwise, find the client under the pointer and send the event along. */ - } else if (!c && (c = xytoclient(cursor->x, cursor->y))) { + } else if ((c = xytoclient(cursor->x, cursor->y))) { if (c->type != XDGShell) surface = wlr_surface_surface_at(c->surface.xwayland->surface, cursor->x - c->geom.x - c->bw,