#include "src/util/consoleLogger.h" #include // Every Xlib program must include this #include #include #include #include #define REFRESH_RATE 0.15 #ifndef _BLANKSCREEN_H_ #define _BLANKSCREEN_H_ class BlankScreen { public: BlankScreen(); void draw(bool force = false); bool lock(); bool unlock(); void setLogMsg(QString msg); bool lock_inputs(); private: Display *dpy; Window win; XEvent ev; int scr; bool locked; QString lockMsg; int blackColor, whiteColor; int offX, offY; }; class X11Info { public: static Display* display(); }; #endif