1 /**************************************************************************
5 * Check COPYING file for Copyright
7 **************************************************************************/
13 #include <X11/Xatom.h>
14 #include <X11/extensions/Xrandr.h>
15 #include <X11/extensions/Xinerama.h>
18 typedef struct Global_atom
21 Atom _NET_CURRENT_DESKTOP
;
22 Atom _NET_NUMBER_OF_DESKTOPS
;
23 Atom _NET_DESKTOP_GEOMETRY
;
24 Atom _NET_DESKTOP_VIEWPORT
;
25 Atom _NET_ACTIVE_WINDOW
;
26 Atom _NET_WM_WINDOW_TYPE
;
27 Atom _NET_WM_STATE_SKIP_PAGER
;
28 Atom _NET_WM_STATE_SKIP_TASKBAR
;
29 Atom _NET_WM_STATE_STICKY
;
30 Atom _NET_WM_WINDOW_TYPE_DOCK
;
31 Atom _NET_WM_WINDOW_TYPE_DESKTOP
;
32 Atom _NET_WM_WINDOW_TYPE_TOOLBAR
;
33 Atom _NET_WM_WINDOW_TYPE_MENU
;
34 Atom _NET_WM_WINDOW_TYPE_SPLASH
;
35 Atom _NET_WM_WINDOW_TYPE_DIALOG
;
36 Atom _NET_WM_WINDOW_TYPE_NORMAL
;
40 Atom _NET_WM_STATE_SHADED
;
41 Atom _NET_WM_STATE_BELOW
;
42 Atom _NET_WM_STATE_MODAL
;
43 Atom _NET_CLIENT_LIST
;
45 Atom _NET_WM_VISIBLE_NAME
;
48 Atom _NET_CLOSE_WINDOW
;
50 Atom _NET_SUPPORTING_WM_CHECK
;
52 Atom _NET_WM_STRUT_PARTIAL
;
60 typedef struct Monitor
92 void send_event32 (Window win
, Atom at
, long data1
, long data2
);
93 int get_property32 (Window win
, Atom at
, Atom type
);
94 void *server_get_property (Window win
, Atom at
, Atom type
, int *num_results
);
95 Atom
server_get_atom (char *atom_name
);
96 void server_refresh_root_pixmap ();
97 void server_refresh_main_pixmap ();
98 void server_catch_error (Display
*d
, XErrorEvent
*ev
);
99 void server_init_atoms ();
100 Pixmap
server_create_pixmap (int width
, int height
);
102 Pixmap
get_root_pixmap();