mirror of
https://github.com/gnif/LookingGlass.git
synced 2024-11-10 08:38:20 +00:00
[client] app: always call the default eventFilter for unhandled events
This change allows much of the SDL code to be moved into the SDL displayserver implementation.
This commit is contained in:
parent
076ed1180f
commit
89a6686349
@ -1307,6 +1307,11 @@ int eventFilter(void * userdata, SDL_Event * event)
|
||||
if (g_state.ds->eventFilter(event))
|
||||
return 0;
|
||||
|
||||
// always include the default handler (SDL) for any unhandled events
|
||||
if (g_state.ds != LG_DisplayServers[0])
|
||||
if (LG_DisplayServers[0]->eventFilter(event))
|
||||
return 0;
|
||||
|
||||
if (event->type == e_SDLEvent)
|
||||
{
|
||||
switch(event->user.code)
|
||||
|
Loading…
Reference in New Issue
Block a user