kc3-lang/SDL/src/video/cocoa/SDL_cocoawindow.m

Branch :


Log

Author Commit Date CI Message
4295a92f 2013-11-14 22:26:49 Fixed bug 2240 - On OS/X after calling SDL_SetWindowBordered right mouse clicks no longer register philhassey On OS/X after calling SDL_SetWindowBordered right mouse clicks no longer register. Steps to Reproduce: 1. Open a windowed window on OS/X. (With the border on.) 2. e.button.button will give values 1,2,3 depending on which mouse button I click. 3. Call SDL_SetWindowBordered to disable the border. 4. e.button.button will only give values 1,2. 3 (right mouse button) stops coming through. Expected result: I expect all mouse buttons to register.
12961352 2013-11-12 02:04:12 Fixed build error with SDK < 10.7
253b9ba8 2013-11-12 02:02:12 We still want to generally minimize on focus loss, but not when we're in a fullscreen space on Mac OS X.
75145ea0 2013-11-12 01:52:54 Added a hint SDL_HINT_VIDEO_FULLSCREEN_SPACES to specify that windows go fullscreen into their own spaces on Mac OS X.
5f8a0b18 2013-11-12 00:32:29 Fullscreen space naming cleanup to avoid confusion with normal fullscreen mode
7459b159 2013-11-11 23:42:43 Made sure the window had the correct border when manually being brought back from fullscreen mode.
cb190b82 2013-11-11 22:43:05 Fixed assertion when quickly toggling from fullscreen back to fullscreen: "Terminating app due to uncaught exception 'NSInternalInconsistencyException', reason: 'backgroundWindows not nil in enterFullScreenTransitionWithOptions:animated:activatingIt:'" To reproduce this, run testsprite2, press Alt-Enter once, again while it's animating to fullscreen, and then again while it's animating out of fullscreen.
8f8070db 2013-11-11 21:38:11 Fixed window resizing when entering and leaving fullscreen mode
7cf76ffb 2013-11-11 21:21:18 Fixed assertion failure when minimizing a fullscreen window.
cb31a80d 2013-11-11 20:42:59 Properly handle toggling fullscreen state when another fullscreen state change is in progress.
f0692d65 2013-11-11 03:29:11 Fixed compiling with older Mac OS X SDK
4c1322f6 2013-11-11 02:53:00 Added support for new style fullscreen transitions on Mac OS X
893afbaf 2013-11-10 19:19:44 Fixed pool memory leak
5821466c 2013-11-10 17:40:35 Fixed bug 2176 - SDL_CreateWindow(w=INT_MAX, h=INT_MAX) causes program to hang Catch exceptions generated when trying to create a Cocoa window.
621c7f8f 2013-11-08 14:04:51 Added SDL_HINT_CTRL_CLICK_EMULATE_RIGHT_CLICK hint which controls whether ctrl+click should emulate a right click on OSX.
bcf5472d 2013-10-21 02:37:03 Fixed bug 2073 - Mac: window moves unexpectedly when exiting SDL_WINDOW_FULLSCREEN_DESKTOP mode Alex Szpakowski In Mac OS X, when SDL_SetWindowFullscreen(window, 0) is called on a window which was in SDL_WINDOW_FULLSCREEN_DESKTOP mode, its original size is restored but its position is moved to the bottom of the screen. I tracked down the issue to these two lines: http://hg.libsdl.org/SDL/file/fdd5cc9e9f90/src/video/cocoa/SDL_cocoawindow.m#l1034 I believe [nswindow setFrameOrigin:rect.origin] implicitly calls [nswindow constrainFrameRect:rect toScreen:screen], which will attempt to constrain the window to the screen, but at that point the window size is still full-screen rather than the restored window size, so the constrainFrameRect function operates on the wrong window size. https://developer.apple.com/library/mac/documentation/cocoa/reference/applicationkit/classes/NSWindow_Class/Reference/Reference.html#//apple_ref/occ/instm/NSWindow/constrainFrameRect:toScreen: I resolved the issue by swapping the order of the function calls, like so: [nswindow setContentSize:rect.size]; [nswindow setFrameOrigin:rect.origin];
69a4351e 2013-09-30 22:35:32 Fixed bug 2121 - GCC throws error on SDL_FORCE_INLINE when compiling with -ansi
869a7076 2013-09-20 13:43:00 add in High DPI support (aka Retina) - based on J?rgen's patch with a few bug fixes
67c02a28 2013-09-13 17:42:31 Mac: Translate Ctrl-Left click to right click.
14bf230d 2013-08-12 11:09:13 Mac: Fix restoring of Cmd-H-hidden fullscreen desktop windows. This should fix http://bugzilla.libsdl.org/show_bug.cgi?id=1996
dad42067 2013-08-12 11:13:50 Fixes #2022, do not resume on Android when surfaceChanged If the app is in landscape mode and the user presses the power button, a pause is followed immediately by a surfaceChanged event because the lock screen is shown in portrait mode. This triggers a "false" resume. So, we just pause and resume following the onWindowFocusChanged events. Also, wait for SDL_APP_WILLENTERBACKGROUND and SDL_APP_DIDENTERBACKGROUND before blocking the event pump.
1ad936eb 2013-08-11 19:56:43 Fixed bug 2027 - Full-screen appears to be broken - hang in SDL_DestroyWindow() Rainer Deyke I'm running Linux Mint 15 with the Cinnamon window manager. SDL_DestroyWindow consistently locks up for me when the window if fullscreen.