mirror of https://github.com/9wm/xss.git
16 lines
253 B
C
16 lines
253 B
C
|
#include <X11/Xlib.h>
|
||
|
#include <X11/extensions/scrnsaver.h>
|
||
|
#include <unistd.h>
|
||
|
|
||
|
int
|
||
|
main(int argc, char *argv[])
|
||
|
{
|
||
|
Display *display = XOpenDisplay(NULL);
|
||
|
|
||
|
XScreenSaverSuspend(display, True);
|
||
|
XFlush(display);
|
||
|
pause();
|
||
|
|
||
|
return 0;
|
||
|
}
|