aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--window.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/window.c b/window.c
index df5a5a7..3c55133 100644
--- a/window.c
+++ b/window.c
@@ -189,7 +189,7 @@ void win_open(win_t *win)
int gmask;
XSizeHints sizehints;
XWMHints hints;
- pid_t pid;
+ long pid;
char hostname[256];
XSetWindowAttributes attrs;
char res_class[] = RES_CLASS;
@@ -247,7 +247,7 @@ void win_open(win_t *win)
/* set the _NET_WM_PID */
pid = getpid();
XChangeProperty(e->dpy, win->xwin, atoms[ATOM__NET_WM_PID], XA_CARDINAL,
- sizeof(pid_t) * 8, PropModeReplace, (unsigned char *) &pid, 1);
+ 32, PropModeReplace, (unsigned char *) &pid, 1);
if (gethostname(hostname, ARRLEN(hostname)) == 0) {
XTextProperty tp;
tp.value = (unsigned char *)hostname;