From 1f97823d58d4cca3680e5844fb83aea6eeb4823a Mon Sep 17 00:00:00 2001 From: Jaakko Keränen Date: Sat, 27 Nov 2021 06:54:48 +0200 Subject: Window: Don't steal focus on hover This was incorrect on X11 at least. Should still test on Windows. IssueID #399 --- src/ui/window.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/ui/window.c b/src/ui/window.c index 4b39383c..0bbe588c 100644 --- a/src/ui/window.c +++ b/src/ui/window.c @@ -917,7 +917,7 @@ static iBool handleWindowEvent_MainWindow_(iMainWindow *d, const SDL_WindowEvent return iTrue; case SDL_WINDOWEVENT_ENTER: d->base.isMouseInside = iTrue; - SDL_SetWindowInputFocus(d->base.win); + //SDL_SetWindowInputFocus(d->base.win); /* BUG? */ postCommand_App("window.mouse.entered"); return iTrue; case SDL_WINDOWEVENT_FOCUS_GAINED: -- cgit v1.2.3