diff options
author | John Ankarström <john@ankarstrom.se> | 2021-06-08 09:53:49 +0200 |
---|---|---|
committer | John Ankarström <john@ankarstrom.se> | 2021-06-08 09:53:49 +0200 |
commit | dc841cac73e07d9f0a8ac64717f62c0960e38453 (patch) | |
tree | 569b25533ba18fb323214d5c09d0269ae9a5f17a | |
parent | cdc1854135fc09362f52feb717e473e4c7106d96 (diff) | |
download | tterm-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.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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 */ |