summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorForrest Bushstone <fgb.1@protonmail.com>2024-04-05 21:54:54 -0400
committerLeonardo Hernández Hernández <leohdz172@proton.me>2024-05-30 16:24:42 -0600
commit0047ff740a4f8da430cecdb19084f626bf535b21 (patch)
treeae1b5c283d3e1a5d0409be370121f4f97598536b
parent9825c26cdd5dfed34022b77a8936c5d8f485e134 (diff)
Replicate dwm behavior for sloppyfocus
-rw-r--r--dwl.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/dwl.c b/dwl.c
index bf763df..52bfbc8 100644
--- a/dwl.c
+++ b/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);