# HG changeset patch # User Sam Lantinga # Date 1048354766 0 # Node ID a30b17e09cc08892572f894b2dde970f839947d2 # Parent d0fecf67cd937489586e35f7752ec7e2f2885e18 *** empty log message *** diff -r d0fecf67cd93 -r a30b17e09cc0 test/testwm.c --- a/test/testwm.c Sun Mar 09 21:38:18 2003 +0000 +++ b/test/testwm.c Sat Mar 22 17:39:26 2003 +0000 @@ -93,7 +93,7 @@ } else { printf("Grab was off\n"); } - mode = SDL_WM_GrabInput(!mode); + mode = SDL_WM_GrabInput(mode ? SDL_GRAB_OFF : SDL_GRAB_ON); if ( mode == SDL_GRAB_ON ) { printf("Grab is now on\n"); } else {