mirror of
				https://github.com/gnif/LookingGlass.git
				synced 2025-11-04 06:31:54 +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:
		@@ -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)
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user