root/foundation-apps/xcomp-mgr-maxx/ewmh.h

Revision 10, 1.5 KB (checked in by emasson, 3 years ago)

initial import for the community edition

Line 
1
2#ifndef EWMH_H
3#define EWMH_H
4
5#include <stdlib.h>
6#include <stdio.h>
7#include <string.h>
8#include <X11/Xlib.h>
9#include <X11/Xutil.h>
10#include <X11/Xatom.h>
11
12#define WINDOW_OPACITY                          "_NET_WM_WINDOW_OPACITY"
13
14#define WINDOW_TYPE                             "_NET_WM_WINDOW_TYPE"
15
16
17#define WINDOW_TYPE_DESKTOP             "_NET_WM_WINDOW_TYPE_DESKTOP"
18#define WINDOW_TYPE_DOCK                        "_NET_WM_WINDOW_TYPE_DOCK"
19#define WINDOW_TYPE_TOOLBAR                     "_NET_WM_WINDOW_TYPE_TOOLBAR"
20#define WINDOW_TYPE_MENU                        "_NET_WM_WINDOW_TYPE_MENU"
21#define WINDOW_TYPE_UTILITY                     "_NET_WM_WINDOW_TYPE_UTILITY"
22#define WINDOW_TYPE_SPLASH                      "_NET_WM_WINDOW_TYPE_SPLASH"
23#define WINDOW_TYPE_DIALOG                      "_NET_WM_WINDOW_TYPE_DIALOG"
24#define WINDOW_TYPE_NORMAL                      "_NET_WM_WINDOW_TYPE_NORMAL"
25
26#define WINDOW_TYPE_NO_EFFECT           "_NET_WM_WINDOW_TYPE_NO_EFFECT"
27
28
29/* Enhanced Window Manager Hints Atom definitions */
30
31Atom                    winOpacityAtom;
32
33Atom            winTypeAtom;
34
35Atom            winDesktopAtom;
36Atom            winDockAtom;
37Atom            winToolbarAtom;
38Atom            winMenuAtom;
39Atom            winUtilityAtom;
40Atom            winSplashAtom;
41Atom            winDialogAtom;
42Atom            winNormalAtom;
43
44Atom            winTypeNoEffectAtom;
45
46
47typedef enum 
48{
49        WindowType,
50                WindowTypeDesktop,
51        WindowTypeDock,
52        WindowTypeToolbar,
53        WindowTypeMenu,
54        WindowTypeUtility,
55        WindowTypeSplash,
56        WindowTypeDialog,
57                WindowTypeNoEffect,
58                WindowTypeNormal,
59} NET_WM_WindowType;
60
61void initEWMH(Display *display);
62
63#endif
Note: See TracBrowser for help on using the browser.