mirror of
https://codeberg.org/dwl/dwl.git
synced 2025-10-27 10:14:14 +00:00
don't unfocus when mouse leaves a window
This commit is contained in:
parent
b50f330e60
commit
a8f099daff
2
dwl.c
2
dwl.c
@ -746,7 +746,7 @@ pointerfocus(Client *c, struct wlr_surface *surface, double sx, double sy)
|
|||||||
wlr_seat_pointer_notify_enter(seat, surface, sx, sy);
|
wlr_seat_pointer_notify_enter(seat, surface, sx, sy);
|
||||||
|
|
||||||
/* If keyboard focus follows mouse, enforce that */
|
/* If keyboard focus follows mouse, enforce that */
|
||||||
if (sloppyfocus)
|
if (sloppyfocus && c)
|
||||||
keyboardfocus(c, surface);
|
keyboardfocus(c, surface);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user