blob: 28b05ccd17866edf04d7797e3585a019de6d9c2b (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
|
#include "src/util/consoleLogger.h"
#include <X11/Xlib.h> // Every Xlib program must include this
#include <X11/cursorfont.h>
#include <assert.h>
#include <unistd.h>
#include <stdio.h>
#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;
};
#endif
|