Mercurial > x11calc
view x11.cpp @ 0:12567e0a7670 default tip
initial commit
| author | Yasuri <yasuri@charliesmp.net> |
|---|---|
| date | Sun, 04 Oct 2026 12:56:43 -0500 |
| parents | |
| children |
line wrap: on
line source
#include <X11/Xlib.h> #include <iostream> #include <cstdlib> #include "x11.h" Display *displayopen() { Display* dpy = XOpenDisplay(NULL); if (dpy == NULL) { std::cerr << "Could not open display\n"; std::exit(1); } return dpy; }
