sdl2_frt/src/video/cocoa
Sam Lantinga fae5d0eab3 Fixed bug 3107 OSX - Process events in SDLApplication to fix integration with CEF.
John Wordsworth

While attempting to integrate CEF (Browser) into an SDL application, we noticed that there were problems on OS X where approximately 50% of the input events were essentially being lost - even when we were using off-screen rendering in CEF and passing through input events manually.

It appears that this problem has been around for a while (see: http://www.magpcss.org/ceforum/viewtopic.php?f=6&t=11141).

Please consider the following patch that fixes this issue. Instead of processing events directly after calling [NSApp nextEventMatchingMask:...] we now pass these events down to NSApp, for processing by an overloaded sendEvent: method. Chromium also forwards events to NSApp in the same way, which means we don't miss events, even if they were originally dequeued by CEF.
2016-10-01 14:34:52 -07:00
..
SDL_cocoaclipboard.h Updated copyright to 2016 2016-01-02 10:10:34 -08:00
SDL_cocoaclipboard.m Mac: Fix a crash when SDL is compiled with SDL_MAC_NO_SANDBOX enabled, by increasing the stack size of the mouse tap thread back to OS X' default of 512 KB. 2016-05-21 12:09:23 -03:00
SDL_cocoaevents.h Updated copyright to 2016 2016-01-02 10:10:34 -08:00
SDL_cocoaevents.m Fixed bug 3107 OSX - Process events in SDLApplication to fix integration with CEF. 2016-10-01 14:34:52 -07:00
SDL_cocoakeyboard.h Updated copyright to 2016 2016-01-02 10:10:34 -08:00
SDL_cocoakeyboard.m Enable more compiler warnings in the Xcode projects (based on Xcode 8's suggestion), made some integer downcasts explicit. 2016-09-13 19:51:10 -03:00
SDL_cocoamessagebox.h Updated copyright to 2016 2016-01-02 10:10:34 -08:00
SDL_cocoamessagebox.m Updated copyright to 2016 2016-01-02 10:10:34 -08:00
SDL_cocoamodes.h Removed Mac OS 10.5 support (bug #3137). Also fixed a warning about deprecated Carbon code when using SDL_audio (bug #3127, thanks Dominik!) 2016-05-21 00:20:52 -03:00
SDL_cocoamodes.m Enable more compiler warnings in the Xcode projects (based on Xcode 8's suggestion), made some integer downcasts explicit. 2016-09-13 19:51:10 -03:00
SDL_cocoamouse.h Updated copyright to 2016 2016-01-02 10:10:34 -08:00
SDL_cocoamouse.m Fix mouse wheel events on macOS 10.12 (thanks Eric Wasylishen!) 2016-09-24 13:28:40 -03:00
SDL_cocoamousetap.h Updated copyright to 2016 2016-01-02 10:10:34 -08:00
SDL_cocoamousetap.m Mac: Fix a crash when SDL is compiled with SDL_MAC_NO_SANDBOX enabled, by increasing the stack size of the mouse tap thread back to OS X' default of 512 KB. 2016-05-21 12:09:23 -03:00
SDL_cocoaopengl.h Updated copyright to 2016 2016-01-02 10:10:34 -08:00
SDL_cocoaopengl.m Mac: allows apps to use OpenGL on a slower, integrated GPU. 2016-01-04 22:00:04 -05:00
SDL_cocoashape.h Updated copyright to 2016 2016-01-02 10:10:34 -08:00
SDL_cocoashape.m Removed Mac OS 10.5 support (bug #3137). Also fixed a warning about deprecated Carbon code when using SDL_audio (bug #3127, thanks Dominik!) 2016-05-21 00:20:52 -03:00
SDL_cocoavideo.h Updated copyright to 2016 2016-01-02 10:10:34 -08:00
SDL_cocoavideo.m Added SDL_SetWindowResizable(). (thanks, Ethan!) 2016-09-29 22:52:41 -04:00
SDL_cocoawindow.h Added SDL_SetWindowResizable(). (thanks, Ethan!) 2016-09-29 22:52:41 -04:00
SDL_cocoawindow.m Added SDL_SetWindowResizable(). (thanks, Ethan!) 2016-09-29 22:52:41 -04:00