Move new lxsession with built-in settings daemon to trunk.
[lxde/lxsession.git] / lxsession / xutils.h
1 /*
2 * Copyright © 2004 Red Hat, Inc.
3 *
4 * Permission to use, copy, modify, distribute, and sell this software and its
5 * documentation for any purpose is hereby granted without fee, provided that
6 * the above copyright notice appear in all copies and that both that
7 * copyright notice and this permission notice appear in supporting
8 * documentation, and that the name of Red Hat not be used in advertising or
9 * publicity pertaining to distribution of the software without specific,
10 * written prior permission. Red Hat makes no representations about the
11 * suitability of this software for any purpose. It is provided "as is"
12 * without express or implied warranty.
13 *
14 * RED HAT DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE, INCLUDING ALL
15 * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS, IN NO EVENT SHALL RED HAT
16 * BE LIABLE FOR ANY SPECIAL, INDIRECT OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
17 * WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION
18 * OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN
19 * CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
20 *
21 * Author: Matthias Clasen, Red Hat, Inc.
22 */
23 #ifndef X_UTILS_H
24 #define X_UTILS_H
25
26 #include <X11/Xlib.h>
27
28
29 extern Atom XA_ATOM_PAIR;
30 extern Atom XA_CLIPBOARD_MANAGER;
31 extern Atom XA_CLIPBOARD;
32 extern Atom XA_DELETE;
33 extern Atom XA_INCR;
34 extern Atom XA_INSERT_PROPERTY;
35 extern Atom XA_INSERT_SELECTION;
36 extern Atom XA_MANAGER;
37 extern Atom XA_MULTIPLE;
38 extern Atom XA_NULL;
39 extern Atom XA_SAVE_TARGETS;
40 extern Atom XA_TARGETS;
41 extern Atom XA_TIMESTAMP;
42
43 extern unsigned long SELECTION_MAX_SIZE;
44
45 void init_atoms (Display *display);
46
47 Time get_server_time (Display *display,
48 Window window);
49
50 #endif /* X_UTILS_H */