mirror of
https://codeberg.org/dwl/dwl.git
synced 2025-10-26 17:54:14 +00:00
Replicate dwm behavior for sloppyfocus
This commit is contained in:
parent
577d8da6d1
commit
ed09862dfa
2
dwl.c
2
dwl.c
@ -1882,7 +1882,7 @@ pointerfocus(Client *c, struct wlr_surface *surface, double sx, double sy,
|
||||
{
|
||||
struct timespec now;
|
||||
|
||||
if ((!active_constraint || active_constraint->surface != surface) &&
|
||||
if (surface != seat->pointer_state.focused_surface &&
|
||||
sloppyfocus && time && c && !client_is_unmanaged(c))
|
||||
focusclient(c, 0);
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user