Skip to content

Commit

Permalink
x11: _NET_WM_PID needs a long, not a pid_t, I think.
Browse files Browse the repository at this point in the history
  • Loading branch information
icculus committed Jan 5, 2016
1 parent e6e62be commit f9d478b
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/video/x11/SDL_x11window.c
Expand Up @@ -522,9 +522,10 @@ X11_CreateWindow(_THIS, SDL_Window * window)
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 */
Expand Down

0 comments on commit f9d478b

Please sign in to comment.