diff src/video/x11/SDL_x11window.c @ 3773:3b5691f85c0d gsoc2008_manymouse

Further x11 code improvments + comments
author Szymon Wilczek <kazeuser@gmail.com>
date Mon, 04 Aug 2008 11:18:10 +0000
parents 64f346a83ed3
children
line wrap: on
line diff
--- a/src/video/x11/SDL_x11window.c	Sat Aug 02 17:40:49 2008 +0000
+++ b/src/video/x11/SDL_x11window.c	Mon Aug 04 11:18:10 2008 +0000
@@ -490,7 +490,6 @@
                       PointerMotionMask | KeyPressMask | KeyReleaseMask |
                       PropertyChangeMask | StructureNotifyMask |
                       KeymapStateMask | fevent));
-    XSelectExtensionEvent(data->display, w, SDL_XEvents, SDL_NumOfXEvents);
     }
 #else
     XMapWindow(data->display,w);
@@ -500,8 +499,10 @@
                   PointerMotionMask | KeyPressMask | KeyReleaseMask |
                   PropertyChangeMask | StructureNotifyMask |
                   KeymapStateMask));
+#endif
+
+    /*we're informing the display what extension events we want to receive from it*/
     XSelectExtensionEvent(data->display, w, SDL_XEvents, SDL_NumOfXEvents);
-#endif
 
     return 0;
 }