Use SDL_HINT_MOUSE_FOCUS_CLICKTHROUGH to get click events on focus gain
This commit is contained in:
parent
400754c5b3
commit
8cc61ca8b8
3 changed files with 7 additions and 34 deletions
|
|
@ -1218,10 +1218,7 @@ void Session::exec(int displayOriginX, int displayOriginY)
|
|||
break;
|
||||
|
||||
case SDL_WINDOWEVENT:
|
||||
if (event.window.event == SDL_WINDOWEVENT_FOCUS_GAINED) {
|
||||
m_InputHandler->notifyFocusGained();
|
||||
}
|
||||
else if (event.window.event == SDL_WINDOWEVENT_FOCUS_LOST) {
|
||||
if (event.window.event == SDL_WINDOWEVENT_FOCUS_LOST) {
|
||||
m_InputHandler->notifyFocusLost();
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue