From dc841cac73e07d9f0a8ac64717f62c0960e38453 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?John=20Ankarstr=C3=B6m?= Date: Tue, 8 Jun 2021 09:53:49 +0200 Subject: 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. --- tterm.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 */ -- cgit v1.2.3