diff --git a/Makefile b/Makefile index c361b52..fb716b0 100644 --- a/Makefile +++ b/Makefile @@ -3,7 +3,7 @@ BINDIR ?= $(HOME)/bin/$(HOSTTYPE) CFLAGS = -Wall LDLIBS = -L/usr/X11R6/lib -lX11 -BINARIES = xss xsswin xcursorpos xkeygrab xbell magic +BINARIES = xss xsswin xcursorpos xkeygrab xbell magic xnolock all: $(BINARIES) @@ -13,6 +13,6 @@ install: $(BINARIES) clean: rm -f $(BINARIES) -xss: LDLIBS += -lXss +xss xnolock: LDLIBS += -lXss .PHONY: all install clean diff --git a/xnolock.c b/xnolock.c new file mode 100644 index 0000000..dd9be54 --- /dev/null +++ b/xnolock.c @@ -0,0 +1,15 @@ +#include +#include +#include + +int +main(int argc, char *argv[]) +{ + Display *display = XOpenDisplay(NULL); + + XScreenSaverSuspend(display, True); + XFlush(display); + pause(); + + return 0; +} diff --git a/xsswin.c b/xsswin.c index 9fe832d..031eba4 100644 --- a/xsswin.c +++ b/xsswin.c @@ -50,7 +50,6 @@ main(int argc, char * const argv[]) wa.override_redirect = 1; wa.background_pixel = BlackPixel(display, screen); { - Pixmap pmap; XColor black; pmap = XCreateBitmapFromData(display, root, "\0", 1, 1);