annotate test/.cvsignore @ 1629:ef4a796e7f24

Fixed bug #55 From Christian Walther: When writing my patch for #12, I ended up doing all sorts of changes to the way application/window activating/deactivating is handled in the Quartz backend, resulting in the attached patch. It does make the code a bit cleaner IMHO, but as it might be regarded as a case of "if it ain't broken, don't fix it" I'd like to hear other people's opinion about it. Please shout if some change strikes you as unnecessary or wrong, and I'll explain the reasons behind it. As far as I tested it, it does not introduce any new bugs, but I may well have missed some. - The most fundamental change (that triggered most of the others) is irrelevant for the usual single-window SDL applications, it only affects the people who are crazy enough to display other Cocoa windows alongside the SDL window (I'm actually doing this currently, although the additional window only displays debugging info and won't be present in the final product): Before, some things were done on the application becoming active, some on the window becoming key, and some on the window becoming main. Conceptually, all these actions belong to the window becoming key, so that's what I implemented. However, since in a single-window application these three events always happen together, the previous implementation "ain't broken". - This slightly changed the meaning of the SDL_APPMOUSEFOCUS flag from SDL_GetAppState(): Before, it meant "window is main and mouse is inside window (or mode is fullscreen)". Now, it means "window is key and mouse is inside window (or mode is fullscreen)". It makes more sense to me that way. (See http://developer.apple.com/documentation/Cocoa/Conceptual/WinPanel/Concepts/ChangingMainKeyWindow.html for a discussion of what key and main windows are.) The other two flags are unchanged: SDL_APPACTIVE = application is not hidden and window is not minimized, SDL_APPINPUTFOCUS = window is key (or mode is fullscreen). - As a side effect, the reorganization fixes the following two issues (and maybe others) (but they could also be fixed in less invasive ways): * A regression that was introduced in revision 1.42 of SDL_QuartzVideo.m (http://libsdl.org/cgi/cvsweb.cgi/SDL12/src/video/quartz/SDL_QuartzVideo.m.diff?r1=1.41&r2=1.42) (from half-desirable to undesirable behavior): Situation: While in windowed mode, hide the cursor using SDL_ShowCursor(SDL_DISABLE), move the mouse outside of the window so that the cursor becomes visible again, and SDL_SetVideoMode() to a fullscreen mode. What happened before revision 1.42: The cursor is visible, but becomes invisible as soon as the mouse is moved (half-desirable). What happens in revision 1.42 and after (including current CVS): The cursor is visible and stays visible (undesirable). What happens after my patch: The cursor is invisible from the beginning (desirable). * When the cursor is hidden and grabbed, switch away from the application using cmd-tab (which ungrabs and makes the cursor visible), move the cursor outside of the SDL window, then cmd-tab back to the application. In 1.2.8 and in the current CVS, the cursor is re-grabbed, but it stays visible (immovable in the middle of the window). With my patch, the cursor is correctly re-grabbed and hidden. (For some reason, it still doesn't work correctly if you switch back to the application using the dock instead of cmd-tab. I haven't been able to figure out why. I can step over [NSCursor hide] being called in the debugger, but it seems to have no effect.) - The patch includes my patch for #12 (it was easier to obtain using cvs diff that way). If you apply both of them, you will end up with 6 duplicate lines in SDL_QuartzEvents.m.
author Sam Lantinga <slouken@libsdl.org>
date Thu, 13 Apr 2006 14:17:48 +0000
parents 7b4b31075f67
children
rev   line source
1380
d94b080ff6ce Completely removed dependency on automake
Sam Lantinga <slouken@libsdl.org>
parents: 1285
diff changeset
1 aclocal.m4
d94b080ff6ce Completely removed dependency on automake
Sam Lantinga <slouken@libsdl.org>
parents: 1285
diff changeset
2 autom4te*
416
6b0363ceaba2 *** empty log message ***
Sam Lantinga <slouken@libsdl.org>
parents: 0
diff changeset
3 config.cache
6b0363ceaba2 *** empty log message ***
Sam Lantinga <slouken@libsdl.org>
parents: 0
diff changeset
4 config.log
6b0363ceaba2 *** empty log message ***
Sam Lantinga <slouken@libsdl.org>
parents: 0
diff changeset
5 config.status
1380
d94b080ff6ce Completely removed dependency on automake
Sam Lantinga <slouken@libsdl.org>
parents: 1285
diff changeset
6 configure
d94b080ff6ce Completely removed dependency on automake
Sam Lantinga <slouken@libsdl.org>
parents: 1285
diff changeset
7 Makefile
1285
c9ae23d221ea *** empty log message ***
Sam Lantinga <slouken@libsdl.org>
parents: 1249
diff changeset
8 SDL.dll
c9ae23d221ea *** empty log message ***
Sam Lantinga <slouken@libsdl.org>
parents: 1249
diff changeset
9 stdout.txt
c9ae23d221ea *** empty log message ***
Sam Lantinga <slouken@libsdl.org>
parents: 1249
diff changeset
10 stderr.txt
416
6b0363ceaba2 *** empty log message ***
Sam Lantinga <slouken@libsdl.org>
parents: 0
diff changeset
11 checkkeys
6b0363ceaba2 *** empty log message ***
Sam Lantinga <slouken@libsdl.org>
parents: 0
diff changeset
12 graywin
6b0363ceaba2 *** empty log message ***
Sam Lantinga <slouken@libsdl.org>
parents: 0
diff changeset
13 loopwave
6b0363ceaba2 *** empty log message ***
Sam Lantinga <slouken@libsdl.org>
parents: 0
diff changeset
14 testalpha
6b0363ceaba2 *** empty log message ***
Sam Lantinga <slouken@libsdl.org>
parents: 0
diff changeset
15 testbitmap
1249
e6a82dcdce09 *** empty log message ***
Sam Lantinga <slouken@libsdl.org>
parents: 817
diff changeset
16 testblitspeed
416
6b0363ceaba2 *** empty log message ***
Sam Lantinga <slouken@libsdl.org>
parents: 0
diff changeset
17 testcdrom
1249
e6a82dcdce09 *** empty log message ***
Sam Lantinga <slouken@libsdl.org>
parents: 817
diff changeset
18 testdyngl
416
6b0363ceaba2 *** empty log message ***
Sam Lantinga <slouken@libsdl.org>
parents: 0
diff changeset
19 testerror
1484
b2b476a4a73c Added documentation on how to build a completely useless SDL library. :)
Sam Lantinga <slouken@libsdl.org>
parents: 1380
diff changeset
20 testfile
416
6b0363ceaba2 *** empty log message ***
Sam Lantinga <slouken@libsdl.org>
parents: 0
diff changeset
21 testgamma
6b0363ceaba2 *** empty log message ***
Sam Lantinga <slouken@libsdl.org>
parents: 0
diff changeset
22 testgl
6b0363ceaba2 *** empty log message ***
Sam Lantinga <slouken@libsdl.org>
parents: 0
diff changeset
23 testhread
1504
7b4b31075f67 *** empty log message ***
Sam Lantinga <slouken@libsdl.org>
parents: 1485
diff changeset
24 testiconv
416
6b0363ceaba2 *** empty log message ***
Sam Lantinga <slouken@libsdl.org>
parents: 0
diff changeset
25 testjoystick
6b0363ceaba2 *** empty log message ***
Sam Lantinga <slouken@libsdl.org>
parents: 0
diff changeset
26 testkeys
6b0363ceaba2 *** empty log message ***
Sam Lantinga <slouken@libsdl.org>
parents: 0
diff changeset
27 testlock
6b0363ceaba2 *** empty log message ***
Sam Lantinga <slouken@libsdl.org>
parents: 0
diff changeset
28 testoverlay
676
8b58eeef4576 *** empty log message ***
Sam Lantinga <slouken@libsdl.org>
parents: 416
diff changeset
29 testoverlay2
416
6b0363ceaba2 *** empty log message ***
Sam Lantinga <slouken@libsdl.org>
parents: 0
diff changeset
30 testpalette
1484
b2b476a4a73c Added documentation on how to build a completely useless SDL library. :)
Sam Lantinga <slouken@libsdl.org>
parents: 1380
diff changeset
31 testplatform
416
6b0363ceaba2 *** empty log message ***
Sam Lantinga <slouken@libsdl.org>
parents: 0
diff changeset
32 testsem
6b0363ceaba2 *** empty log message ***
Sam Lantinga <slouken@libsdl.org>
parents: 0
diff changeset
33 testsprite
6b0363ceaba2 *** empty log message ***
Sam Lantinga <slouken@libsdl.org>
parents: 0
diff changeset
34 testtimer
6b0363ceaba2 *** empty log message ***
Sam Lantinga <slouken@libsdl.org>
parents: 0
diff changeset
35 testver
6b0363ceaba2 *** empty log message ***
Sam Lantinga <slouken@libsdl.org>
parents: 0
diff changeset
36 testvidinfo
6b0363ceaba2 *** empty log message ***
Sam Lantinga <slouken@libsdl.org>
parents: 0
diff changeset
37 testwin
6b0363ceaba2 *** empty log message ***
Sam Lantinga <slouken@libsdl.org>
parents: 0
diff changeset
38 testwm
1485
e507811313ee *** empty log message ***
Sam Lantinga <slouken@libsdl.org>
parents: 1484
diff changeset
39 threadwin
1380
d94b080ff6ce Completely removed dependency on automake
Sam Lantinga <slouken@libsdl.org>
parents: 1285
diff changeset
40 torturethread