better now

This commit is contained in:
pony-montana 2023-09-09 11:34:44 +00:00 committed by GitHub
parent 2ddbd4bda4
commit e41d18d55c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

2
dwl.c
View File

@ -585,7 +585,7 @@ buttonpress(struct wl_listener *listener, void *data)
if (locked)
break;
Change focus if the button was _pressed_ over a client
/* Change focus if the button was _pressed_ over a client */
xytonode(cursor->x, cursor->y, NULL, &c, NULL, NULL, NULL);
if (c && (!client_is_unmanaged(c) || client_wants_focus(c)))
focusclient(c, 1);