diff options
| author | Forrest Bushstone <fgb.1@protonmail.com> | |
|---|---|---|
| 2024-04-05 21:54:54 -0400 | ||
| committer | Leonardo Hernández Hernández <leohdz172@proton.me> | |
| 2024-05-30 16:24:42 -0600 | ||
| commit | 0047ff740a4f8da430cecdb19084f626bf535b21 (patch) | |
| tree | ae1b5c283d3e1a5d0409be370121f4f97598536b | |
| parent | 9825c26cdd5dfed34022b77a8936c5d8f485e134 (diff) | |
| download | dwl-0047ff740a4f8da430cecdb19084f626bf535b21.tar.gz dwl-0047ff740a4f8da430cecdb19084f626bf535b21.tar.bz2 dwl-0047ff740a4f8da430cecdb19084f626bf535b21.zip | |
Replicate dwm behavior for sloppyfocus
@@ -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); |