/* * Copyright (C) 2002 Philip Blundell * * This program is free software; you can redistribute it and/or * modify it under the terms of the GNU General Public License * as published by the Free Software Foundation; either version * 2 of the License, or (at your option) any later version. */ #include #include #include #include #include #include int main (int argc, char *argv[]) { char b = 1; Atom atom; Display *dpy; Window root; if ((dpy = XOpenDisplay (NULL)) == NULL) { fprintf (stderr, "Cannot connect to X server."); exit (1); } root = RootWindow (dpy, 0); atom = XInternAtom (dpy, "GPE_DISPLAY_LOCKED", 0); XChangeProperty (dpy, root, atom, XA_INTEGER, 8, PropModeReplace, &b, 1); XCloseDisplay (dpy); exit (0); }