Install & Compatibility
Where this runs
No compatibility data collected yet for this library.
Code
Verified usage
Verified import paths — ran on the pinned version, not inferred.
X11/extensions/Xinerama.h
✓ #include <X11/extensions/Xinerama.h>
Queries and prints screen sizes using Xinerama.
#include <X11/extensions/Xinerama.h>
#include <X11/Xlib.h>
#include <iostream>
int main() {
Display *dpy = XOpenDisplay(nullptr);
int screens;
XineramaScreenInfo *info = XineramaQueryScreens(dpy, &screens);
for (int i = 0; i < screens; ++i) {
std::cout << "Screen " << i << ": " << info[i].width << "x" << info[i].height << std::endl;
}
XFree(info);
XCloseDisplay(dpy);
return 0;
}
Debug
Known issues
No known issues recorded.
Audit
Dependencies
No dependency data recorded yet.
Resources
No resource links recorded.