xss/xnolock.c

16 lines
253 B
C
Raw Normal View History

2012-03-02 16:47:46 -07:00
#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;
}