summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJaakko Keränen <jaakko.keranen@iki.fi>2021-11-27 06:54:48 +0200
committerJaakko Keränen <jaakko.keranen@iki.fi>2021-11-27 06:54:48 +0200
commit1f97823d58d4cca3680e5844fb83aea6eeb4823a (patch)
tree739330475c43adfb3f3d42213f683666f80d4636
parent50ded07e3e50ce1ab62e2933ababb6dd941c1497 (diff)
Window: Don't steal focus on hover
This was incorrect on X11 at least. Should still test on Windows. IssueID #399
-rw-r--r--src/ui/window.c2
1 files changed, 1 insertions, 1 deletions
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
917 return iTrue; 917 return iTrue;
918 case SDL_WINDOWEVENT_ENTER: 918 case SDL_WINDOWEVENT_ENTER:
919 d->base.isMouseInside = iTrue; 919 d->base.isMouseInside = iTrue;
920 SDL_SetWindowInputFocus(d->base.win); 920 //SDL_SetWindowInputFocus(d->base.win); /* BUG? */
921 postCommand_App("window.mouse.entered"); 921 postCommand_App("window.mouse.entered");
922 return iTrue; 922 return iTrue;
923 case SDL_WINDOWEVENT_FOCUS_GAINED: 923 case SDL_WINDOWEVENT_FOCUS_GAINED: