]> git.rm.cloudns.org Git - xonotic/darkplaces.git/commitdiff
GLX: ignore XSendEvent
authorRudolf Polzer <divverent@alientrap.org>
Mon, 4 Jun 2012 08:56:22 +0000 (10:56 +0200)
committerRudolf Polzer <divverent@alientrap.org>
Mon, 4 Jun 2012 08:56:22 +0000 (10:56 +0200)
vid_glx.c

index b14bd137e82221c855d392dec58b2ae60bc9abfa..7d9b605081e55ad266088b0fcdc3474e9747e1ba 100644 (file)
--- a/vid_glx.c
+++ b/vid_glx.c
@@ -587,6 +587,11 @@ static void HandleEvents(void)
        {
                XNextEvent(vidx11_display, &event);
 
+#ifdef ANTICHEAT
+               if(event.xany.send_event)
+                       continue;
+#endif
+
                switch (event.type)
                {
                case KeyPress: