x11: _NET_WM_PID needs a long, not a pid_t, I think.
authorRyan C. Gordon <icculus@icculus.org>
Tue, 05 Jan 2016 02:40:14 -0500
changeset 10014 906340c8c820
parent 10013 9f758c4d746a
child 10015 d809627808b1
x11: _NET_WM_PID needs a long, not a pid_t, I think.
src/video/x11/SDL_x11window.c
--- a/src/video/x11/SDL_x11window.c	Tue Jan 05 01:26:32 2016 -0500
+++ b/src/video/x11/SDL_x11window.c	Tue Jan 05 02:40:14 2016 -0500
@@ -522,9 +522,10 @@
     X11_XFree(classhints);
     /* Set the PID related to the window for the given hostname, if possible */
     if (data->pid > 0) {
+        long pid = (long) data->pid;
         _NET_WM_PID = X11_XInternAtom(display, "_NET_WM_PID", False);
         X11_XChangeProperty(display, w, _NET_WM_PID, XA_CARDINAL, 32, PropModeReplace,
-                        (unsigned char *)&data->pid, 1);
+                        (unsigned char *) &pid, 1);
     }
 
     /* Set the window manager state */