"Fossies" - the Fresh Open Source Software Archive

Member "xscreensaver-6.01/driver/atoms.c" (20 May 2021, 2967 Bytes) of package /linux/misc/xscreensaver-6.01.tar.gz:


As a special service "Fossies" has tried to format the requested source page into HTML format using (guessed) C and C++ source code syntax highlighting (style: standard) with prefixed line numbers and code folding option. Alternatively you can here view or download the uninterpreted source code file. For more information about "atoms.c" see the Fossies "Dox" file reference documentation and the latest Fossies "Diffs" side-by-side code changes report: 6.00_vs_6.01.

    1 /* xscreensaver-command, Copyright © 1991-2021 Jamie Zawinski <jwz@jwz.org>
    2  *
    3  * Permission to use, copy, modify, distribute, and sell this software and its
    4  * documentation for any purpose is hereby granted without fee, provided that
    5  * the above copyright notice appear in all copies and that both that
    6  * copyright notice and this permission notice appear in supporting
    7  * documentation.  No representations are made about the suitability of this
    8  * software for any purpose.  It is provided "as is" without express or 
    9  * implied warranty.
   10  */
   11 
   12 #ifdef HAVE_CONFIG_H
   13 # include "config.h"
   14 #endif
   15 
   16 #include <stdio.h>
   17 #include <stdlib.h>
   18 
   19 #include <X11/Xproto.h>     /* for CARD32 */
   20 #include <X11/Xlib.h>
   21 #include <X11/Xatom.h>
   22 
   23 #include "atoms.h"
   24 
   25 Atom XA_SCREENSAVER, XA_SCREENSAVER_VERSION, XA_SCREENSAVER_RESPONSE,
   26      XA_SCREENSAVER_ID, XA_SCREENSAVER_STATUS, XA_SELECT, XA_DEMO, XA_EXIT,
   27      XA_BLANK, XA_LOCK, XA_ACTIVATE, XA_SUSPEND, XA_NEXT, XA_PREV,
   28      XA_DEACTIVATE, XA_CYCLE, XA_RESTART, XA_PREFS,
   29      XA_NET_WM_PID, XA_NET_WM_STATE, XA_NET_WM_STATE_ABOVE,
   30      XA_NET_WM_STATE_FULLSCREEN, XA_NET_WM_BYPASS_COMPOSITOR,
   31      XA_NET_WM_STATE_STAYS_ON_TOP, XA_KDE_NET_WM_WINDOW_TYPE_OVERRIDE,
   32      XA_NET_WM_WINDOW_TYPE, XA_NET_WM_WINDOW_TYPE_SPLASH,
   33      XA_NET_WM_WINDOW_TYPE_DIALOG, XA_NET_WM_WINDOW_TYPE_NOTIFICATION,
   34      XA_NET_WM_WINDOW_TYPE_NORMAL;
   35 
   36 void
   37 init_xscreensaver_atoms (Display *dpy)
   38 {
   39 # define A(N) XInternAtom (dpy, (N), False)
   40   XA_SCREENSAVER          = A("SCREENSAVER");
   41   XA_SCREENSAVER_ID       = A("_SCREENSAVER_ID");
   42   XA_SCREENSAVER_VERSION  = A("_SCREENSAVER_VERSION");
   43   XA_SCREENSAVER_STATUS   = A("_SCREENSAVER_STATUS");
   44   XA_SCREENSAVER_RESPONSE = A("_SCREENSAVER_RESPONSE");
   45 
   46   XA_ACTIVATE   = A("ACTIVATE");
   47   XA_DEACTIVATE = A("DEACTIVATE");
   48   XA_SUSPEND    = A("SUSPEND");
   49   XA_RESTART    = A("RESTART");
   50   XA_CYCLE      = A("CYCLE");
   51   XA_NEXT       = A("NEXT");
   52   XA_PREV       = A("PREV");
   53   XA_SELECT     = A("SELECT");
   54   XA_EXIT       = A("EXIT");
   55   XA_DEMO       = A("DEMO");
   56   XA_PREFS      = A("PREFS");
   57   XA_LOCK       = A("LOCK");
   58   XA_BLANK      = A("BLANK");
   59 
   60   XA_NET_WM_PID                      = A("_NET_WM_PID");
   61   XA_NET_WM_STATE                    = A("_NET_WM_STATE");
   62   XA_NET_WM_STATE_ABOVE              = A("_NET_WM_STATE_ABOVE");
   63   XA_NET_WM_STATE_FULLSCREEN         = A("_NET_WM_STATE_FULLSCREEN");
   64   XA_NET_WM_BYPASS_COMPOSITOR        = A("_NET_WM_BYPASS_COMPOSITOR");
   65   XA_NET_WM_WINDOW_TYPE              = A("_NET_WM_WINDOW_TYPE");
   66   XA_NET_WM_WINDOW_TYPE_SPLASH       = A("_NET_WM_WINDOW_TYPE_SPLASH");
   67   XA_NET_WM_WINDOW_TYPE_DIALOG       = A("_NET_WM_WINDOW_TYPE_DIALOG");
   68   XA_NET_WM_WINDOW_TYPE_NOTIFICATION = A("_NET_WM_WINDOW_TYPE_NOTIFICATION");
   69   XA_NET_WM_WINDOW_TYPE_NORMAL       = A("_NET_WM_WINDOW_TYPE_NORMAL");
   70   XA_NET_WM_STATE_STAYS_ON_TOP       = A("_NET_WM_STATE_STAYS_ON_TOP");
   71   XA_KDE_NET_WM_WINDOW_TYPE_OVERRIDE = A("_KDE_NET_WM_WINDOW_TYPE_OVERRIDE");
   72 
   73 # undef A
   74 }