comparison src/video/x11/SDL_x11events.c @ 2327:7b53a8401195

In testdyngl.c the event type was being anded (&) with SDL_KEYDOWN and if the result was none zero the program was quiting. This is very weird because it was working earlier this week. I added some more trace code to SDL_x11events.c In SDL_X11opengl.c I modified SDL_GL_GetSwapInterval() so that it returns a pretty good value even if you have the SGI swap extension instead of the MESA swap extension. I just saved the value you set and return it too you.
author Bob Pendleton <bob@pendleton.com>
date Fri, 07 Mar 2008 23:57:15 +0000
parents 133562468ff2
children 91e601d9df8b
comparison
equal deleted inserted replaced
2326:133562468ff2 2327:7b53a8401195
41 XNextEvent(videodata->display, &xevent); 41 XNextEvent(videodata->display, &xevent);
42 42
43 /* filter events catchs XIM events and sends them to the correct 43 /* filter events catchs XIM events and sends them to the correct
44 handler */ 44 handler */
45 if (XFilterEvent(&xevent, None) == True) { 45 if (XFilterEvent(&xevent, None) == True) {
46 #ifdef DEBUG_XEVENTS 46 #if 0
47 printf("Filtered event of type = 0x%X\n", xevent.type); 47 printf("Filtered event type = %d display = %d window = %d\n",
48 xevent.type, xevent.xany.display, xevent.xany.window);
48 #endif 49 #endif
49 return; 50 return;
50 } 51 }
51 52
52 /* Send a SDL_SYSWMEVENT if the application wants them */ 53 /* Send a SDL_SYSWMEVENT if the application wants them */
71 } 72 }
72 if (!data) { 73 if (!data) {
73 return; 74 return;
74 } 75 }
75 76
77 #if 0
78 printf("type = %d display = %d window = %d\n",
79 xevent.type, xevent.xany.display, xevent.xany.window);
80 #endif
76 switch (xevent.type) { 81 switch (xevent.type) {
77 82
78 /* Gaining mouse coverage? */ 83 /* Gaining mouse coverage? */
79 case EnterNotify:{ 84 case EnterNotify:{
80 #ifdef DEBUG_XEVENTS 85 #ifdef DEBUG_XEVENTS