From beba0116a0b7abc26609a91917826048b6d218ee Mon Sep 17 00:00:00 2001 From: IoIxD Date: Sun, 26 Apr 2026 19:49:02 -0700 Subject: [PATCH] put MwLLNextEvent's XSetInputFocus under the new option --- src/backend/x11.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/backend/x11.c b/src/backend/x11.c index 500ef7d..82e7be3 100644 --- a/src/backend/x11.c +++ b/src/backend/x11.c @@ -708,8 +708,9 @@ static void MwLLNextEventImpl(MwLL handle) { p.button = MwMOUSE_WHEELDOWN; } - /* this really shouldn't be in this function but it might be needed for enforcing click-to-focus. check later. */ - /* XSetInputFocus(handle->x11.display, handle->x11.window, RevertToNone, CurrentTime);*/ +#ifndef ALLOW_SLOPPY_FOCUS + XSetInputFocus(handle->x11.display, handle->x11.window, RevertToNone, CurrentTime); +#endif MwLLDispatch(handle, down, &p); } else if(ev.type == ButtonRelease) {