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 10014906340c8c820
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
     1.1 --- a/src/video/x11/SDL_x11window.c	Tue Jan 05 01:26:32 2016 -0500
     1.2 +++ b/src/video/x11/SDL_x11window.c	Tue Jan 05 02:40:14 2016 -0500
     1.3 @@ -522,9 +522,10 @@
     1.4      X11_XFree(classhints);
     1.5      /* Set the PID related to the window for the given hostname, if possible */
     1.6      if (data->pid > 0) {
     1.7 +        long pid = (long) data->pid;
     1.8          _NET_WM_PID = X11_XInternAtom(display, "_NET_WM_PID", False);
     1.9          X11_XChangeProperty(display, w, _NET_WM_PID, XA_CARDINAL, 32, PropModeReplace,
    1.10 -                        (unsigned char *)&data->pid, 1);
    1.11 +                        (unsigned char *) &pid, 1);
    1.12      }
    1.13  
    1.14      /* Set the window manager state */