Commit e58c7920bfb0863239bab312f771cf44a2057951

Ryan C. Gordon 2017-08-25T12:51:42

x11: Patched to compile with DEBUG_XEVENTS defined.

diff --git a/src/video/x11/SDL_x11events.c b/src/video/x11/SDL_x11events.c
index f6e1f7d..4173cbb 100644
--- a/src/video/x11/SDL_x11events.c
+++ b/src/video/x11/SDL_x11events.c
@@ -604,7 +604,7 @@ X11_HandleClipboardEvent(_THIS, const XEvent *xevent)
         case SelectionNotify: {
 #ifdef DEBUG_XEVENTS
             printf("window CLIPBOARD: SelectionNotify (requestor = %ld, target = %ld)\n",
-                xevent.xselection.requestor, xevent.xselection.target);
+                xevent->xselection.requestor, xevent->xselection.target);
 #endif
             videodata->selection_waiting = SDL_FALSE;
         }
@@ -616,7 +616,7 @@ X11_HandleClipboardEvent(_THIS, const XEvent *xevent)
 
 #ifdef DEBUG_XEVENTS
             printf("window CLIPBOARD: SelectionClear (requestor = %ld, target = %ld)\n",
-                xevent.xselection.requestor, xevent.xselection.target);
+                xevent->xselection.requestor, xevent->xselection.target);
 #endif
 
             if (xevent->xselectionclear.selection == XA_PRIMARY ||