home *** CD-ROM | disk | FTP | other *** search
/ Usenet 1994 January / usenetsourcesnewsgroupsinfomagicjanuary1994.iso / sources / x / volume3 / awm2 / part04 / Lock.c < prev   
Encoding:
C/C++ Source or Header  |  1989-02-17  |  1.6 KB  |  64 lines

  1.  
  2.  
  3.  
  4. #ifndef lint
  5. static char *rcsid_Lower_c = "$Header: /usr/graph2/X11.3/contrib/windowmgrs/awm/RCS/Lock.c,v 1.2 89/02/07 21:22:31 jkh Exp $";
  6. #endif    lint
  7.  
  8. #include "X11/copyright.h"
  9. /*
  10.  *
  11.  * Copyright 1987, 1988 by Ardent Computer Corporation, Sunnyvale, Ca.
  12.  *
  13.  * Copyright 1988 by Jordan Hubbard.
  14.  *
  15.  *
  16.  *                         All Rights Reserved
  17.  *
  18.  * Permission to use, copy, modify, and distribute this software and its
  19.  * documentation for any purpose and without fee is hereby granted,
  20.  * provided that the above copyright notice appear in all copies and that
  21.  * both that copyright notice and this permission notice appear in
  22.  * supporting documentation, and that the name of Ardent Computer
  23.  * Corporation or Jordan Hubbard not be used in advertising or publicity
  24.  * pertaining to distribution of the software without specific, written
  25.  * prior permission.
  26.  *
  27.  */
  28.  
  29. /*
  30.  * MODIFICATION HISTORY
  31.  *
  32.  * 000 -- J.Hubbard, PCS Computer systems.
  33.  */
  34.  
  35. #include "awm.h"
  36.  
  37. #ifdef LOCKSCR
  38. /*ARGSUSED*/
  39. Boolean Lock(window, mask, button, x, y)
  40. Window window;                /* Event window. */
  41. int mask;                /* Button/key mask. */
  42. int button;                /* Button event detail. */
  43. int x, y;                /* Event mouse position. */
  44. {
  45.      void lockscreen();
  46.  
  47.      Entry("Lock")
  48.  
  49.      lockscreen(dpy);
  50.      Leave(TRUE)
  51. }
  52. #else
  53. Boolean Lock(window, mask, button, x, y)
  54. Window window;                /* Event window. */
  55. int mask;                /* Button/key mask. */
  56. int button;                /* Button event detail. */
  57. int x, y;                /* Event mouse position. */
  58. {
  59.      fprintf(stderr,
  60.     "awm: You don't have lockscreen compiled in this version of awm.\n");
  61.      Leave(FALSE)
  62. }
  63. #endif /* LOCKSCR */
  64.