X-Git-Url: https://git.sur5r.net/?a=blobdiff_plain;f=i3-dump-log%2Fmain.c;h=acb7fcb1f36308b64a2f075b038668c20f55f00c;hb=1dbdd4fece86c5f85bde54e40f58fa1a91810933;hp=852a5cf7b2fc944e50272fcd2c1a9b676c2070f6;hpb=d5358a749e3f4eed45144a2c78032c4163ea2367;p=i3%2Fi3 diff --git a/i3-dump-log/main.c b/i3-dump-log/main.c index 852a5cf7..acb7fcb1 100644 --- a/i3-dump-log/main.c +++ b/i3-dump-log/main.c @@ -90,7 +90,7 @@ int main(int argc, char *argv[]) { } } - char *shmname = root_atom_contents("I3_SHMLOG_PATH"); + char *shmname = root_atom_contents("I3_SHMLOG_PATH", NULL, 0); if (shmname == NULL) { /* Something failed. Let’s invest a little effort to find out what it * is. This is hugely helpful for users who want to debug i3 but are @@ -109,7 +109,7 @@ int main(int argc, char *argv[]) { fprintf(stderr, "FYI: The DISPLAY environment variable is set to \"%s\".\n", getenv("DISPLAY")); exit(1); } - if (root_atom_contents("I3_CONFIG_PATH") != NULL) { + if (root_atom_contents("I3_CONFIG_PATH", conn, screen) != NULL) { fprintf(stderr, "i3-dump-log: ERROR: i3 is running, but SHM logging is not enabled.\n\n"); if (!is_debug_build()) { fprintf(stderr, "You seem to be using a release version of i3:\n %s\n\n", I3_VERSION);