summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMatthieu Herrb <matthieu@cvs.openbsd.org>2021-03-16 15:42:25 +0000
committerMatthieu Herrb <matthieu@herrb.eu>2021-08-30 20:03:05 +0200
commit8cd08e402eaf18de91d9b1f3ea1cfe808230602a (patch)
tree14f16fb4981a4c2117ec1a0be1e8ad8a4b1cd09b
parent7e4321186b98a20fcaa0b75af61130a4689515ff (diff)
Don't create non-existent atoms. ok kn@
-rw-r--r--xenodm/dm.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/xenodm/dm.c b/xenodm/dm.c
index b6ffc0d..3346f48 100644
--- a/xenodm/dm.c
+++ b/xenodm/dm.c
@@ -502,7 +502,7 @@ SetConsolePath(struct display *d)
unsigned long bytes_after;
unsigned char *buf;
- prop = XInternAtom(d->dpy, "Xorg_Console", False);
+ prop = XInternAtom(d->dpy, "Xorg_Console", True);
if (prop == None) {
LogError("no Xorg_Console atom\n");
return;
@@ -544,7 +544,7 @@ SetWindowPath(struct display *d)
char *newwindowpath = NULL;
unsigned long num;
- prop = XInternAtom(d->dpy, "XFree86_VT", False);
+ prop = XInternAtom(d->dpy, "XFree86_VT", True);
if (prop == None) {
fprintf(stderr, "no XFree86_VT atom\n");
return;