[client/common] restructure project in prep for full SDL removal

This commit is contained in:
Geoffrey McRae
2021-01-25 19:58:36 +11:00
parent 6f1c19b3b0
commit bf583290a4
42 changed files with 1668 additions and 1822 deletions

View File

@@ -128,12 +128,12 @@ static bool sdlEventFilter(SDL_Event * event)
switch(event->window.event)
{
case SDL_WINDOWEVENT_ENTER:
app_handleWindowEnter();
app_handleEnterEvent(true);
return true;
case SDL_WINDOWEVENT_LEAVE:
sdl.exiting = false;
app_handleWindowLeave();
app_handleEnterEvent(false);
return true;
case SDL_WINDOWEVENT_FOCUS_GAINED:

View File

@@ -372,7 +372,7 @@ static bool x11EventFilter(SDL_Event * event)
XIEnterEvent *xie = cookie->data;
app_updateCursorPos(xie->event_x, xie->event_y);
app_handleWindowEnter();
app_handleEnterEvent(true);
x11.entered = true;
return true;
}
@@ -384,7 +384,7 @@ static bool x11EventFilter(SDL_Event * event)
XILeaveEvent *xie = cookie->data;
app_updateCursorPos(xie->event_x, xie->event_y);
app_handleWindowLeave();
app_handleEnterEvent(false);
x11.entered = false;
return true;
}