mirror of
https://github.com/gnif/LookingGlass.git
synced 2025-08-09 20:24:14 +00:00
[client/common] restructure project in prep for full SDL removal
This commit is contained in:
@@ -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:
|
||||
|
@@ -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;
|
||||
}
|
||||
|
Reference in New Issue
Block a user