summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJohn Ankarström <john@ankarstrom.se>2021-06-08 09:53:49 +0200
committerJohn Ankarström <john@ankarstrom.se>2021-06-08 09:53:49 +0200
commitdc841cac73e07d9f0a8ac64717f62c0960e38453 (patch)
tree569b25533ba18fb323214d5c09d0269ae9a5f17a
parentcdc1854135fc09362f52feb717e473e4c7106d96 (diff)
downloadtterm-dc841cac73e07d9f0a8ac64717f62c0960e38453.tar.gz
Look up _NET_WM_PID atom even when it doesn't exist
Otherwise, tterm won't work if run as the first program in a new X11 session.
-rw-r--r--tterm.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/tterm.c b/tterm.c
index 21beb54..ba46d64 100644
--- a/tterm.c
+++ b/tterm.c
@@ -93,7 +93,7 @@ main(int argc, char *argv[])
err(1, "mkfifo");
/* retrieve atom for _NET_WM_PID */
- pidatom = XInternAtom(display, "_NET_WM_PID", 1);
+ pidatom = XInternAtom(display, "_NET_WM_PID", 0);
if (pidatom == None) die("no _NET_WM_PID atom found\n");
/* start terminal */