#pragma once #include #include #include #include #include #include #include struct XDisplay { XDisplay() { _display = XOpenDisplay(nullptr); } ~XDisplay() { XCloseDisplay(_display); } operator XlibDisplay*() const { return _display; } private: XlibDisplay* _display; };