Mercurial > x11calc
comparison x11.cpp @ 0:12567e0a7670 default tip
initial commit
| author | Yasuri <yasuri@charliesmp.net> |
|---|---|
| date | Sun, 04 Oct 2026 12:56:43 -0500 |
| parents | |
| children |
comparison
equal
deleted
inserted
replaced
| -1:000000000000 | 0:12567e0a7670 |
|---|---|
| 1 #include <X11/Xlib.h> | |
| 2 #include <iostream> | |
| 3 #include <cstdlib> | |
| 4 #include "x11.h" | |
| 5 Display *displayopen() | |
| 6 { | |
| 7 Display* dpy = XOpenDisplay(NULL); | |
| 8 if (dpy == NULL) { | |
| 9 std::cerr << "Could not open display\n"; | |
| 10 std::exit(1); | |
| 11 } | |
| 12 return dpy; | |
| 13 } |
