mirror of
https://codeberg.org/dwl/dwl.git
synced 2024-12-27 03:36:31 +00:00
Replicate dwm behavior for sloppyfocus
This commit is contained in:
parent
9825c26cdd
commit
0047ff740a
1 changed files with 1 additions and 1 deletions
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 a new issue