mirror of
https://codeberg.org/dwl/dwl.git
synced 2025-10-26 17:54:14 +00:00
fix: guard unfocusclient behind sloppyfocus
This commit is contained in:
parent
c32ae64c91
commit
033814d6ef
5
dwl.c
5
dwl.c
@ -2064,10 +2064,13 @@ pointerfocus(Client *c, struct wlr_surface *surface, double sx, double sy,
|
||||
sloppyfocus && time && c && !client_is_unmanaged(c))
|
||||
focusclient(c, 0);
|
||||
|
||||
/* Unfocus any focused clients if surface is NULL and focus should follow mouse */
|
||||
if (!surface && sloppyfocus)
|
||||
focusclient(NULL, 0);
|
||||
|
||||
/* If surface is NULL, clear pointer focus */
|
||||
if (!surface) {
|
||||
wlr_seat_pointer_notify_clear_focus(seat);
|
||||
focusclient(NULL, 0);
|
||||
return;
|
||||
}
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user