Replicate dwm behavior for sloppyfocus
This commit is contained in:
parent
9825c26cdd
commit
0047ff740a
2
dwl.c
2
dwl.c
@ -1882,7 +1882,7 @@ pointerfocus(Client *c, struct wlr_surface *surface, double sx, double sy,
|
|||||||
{
|
{
|
||||||
struct timespec now;
|
struct timespec now;
|
||||||
|
|
||||||
if ((!active_constraint || active_constraint->surface != surface) &&
|
if (surface != seat->pointer_state.focused_surface &&
|
||||||
sloppyfocus && time && c && !client_is_unmanaged(c))
|
sloppyfocus && time && c && !client_is_unmanaged(c))
|
||||||
focusclient(c, 0);
|
focusclient(c, 0);
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user