test/testwm.c
changeset 1779 67fc81efcfc3
parent 1769 290b5baf2fca
child 1895 c121d94672cb
child 4257 14195cfdb66e
equal deleted inserted replaced
1778:e28233f37f8c 1779:67fc81efcfc3
   178 			/* See what happened */
   178 			/* See what happened */
   179 			printf("App %s ",
   179 			printf("App %s ",
   180 				event->active.gain ? "gained" : "lost");
   180 				event->active.gain ? "gained" : "lost");
   181 			if ( event->active.state & SDL_APPACTIVE )
   181 			if ( event->active.state & SDL_APPACTIVE )
   182 				printf("active ");
   182 				printf("active ");
       
   183 			if ( event->active.state & SDL_APPINPUTFOCUS )
       
   184 				printf("input ");
   183 			if ( event->active.state & SDL_APPMOUSEFOCUS )
   185 			if ( event->active.state & SDL_APPMOUSEFOCUS )
   184 				printf("mouse ");
   186 				printf("mouse ");
   185 			if ( event->active.state & SDL_APPINPUTFOCUS )
       
   186 				printf("input ");
       
   187 			printf("focus\n");
   187 			printf("focus\n");
   188 
   188 
   189 			/* See if we are iconified or restored */
   189 			/* See if we are iconified or restored */
   190 			if ( event->active.state & SDL_APPACTIVE ) {
   190 			if ( event->active.state & SDL_APPACTIVE ) {
   191 				printf("App has been %s\n",
   191 				printf("App has been %s\n",