diff options
author | Gediminas Liktaras <gliktaras@gmail.com> | 2011-12-08 13:34:09 (GMT) |
---|---|---|
committer | Paul Tagliamonte <paultag@fluxbox.org> | 2011-12-10 16:13:19 (GMT) |
commit | cd339169d1961eb508ea89cee2609ec6d0fc0c15 (patch) | |
tree | 01acd158a03fb17a72e067ff0b36701da75e49dc /util/fbcompose/Atoms.hh | |
parent | 85ac5c4b2c6a526992f483a6e91867dc2f82a19e (diff) | |
download | fluxbox_paul-cd339169d1961eb508ea89cee2609ec6d0fc0c15.zip fluxbox_paul-cd339169d1961eb508ea89cee2609ec6d0fc0c15.tar.bz2 |
fbcompose - A compositing addon for fluxbox window manager.
fbcompose(1) is an optional compositing addon for fluxbox window manager. It
augments fluxbox with a number of graphical features. Most notably, fbcompose
allows fluxbox to properly display applications that require compositing
(docky, for example), adds support for true window transparency (as opposed to
fluxbox's pseudo transparency) and provides a plugin framework to extend the
compositor's functionality.
As this is still a beta version of the compositor, the bugs are likely.
Diffstat (limited to 'util/fbcompose/Atoms.hh')
-rw-r--r-- | util/fbcompose/Atoms.hh | 90 |
1 files changed, 90 insertions, 0 deletions
diff --git a/util/fbcompose/Atoms.hh b/util/fbcompose/Atoms.hh new file mode 100644 index 0000000..5bb6038 --- /dev/null +++ b/util/fbcompose/Atoms.hh | |||
@@ -0,0 +1,90 @@ | |||
1 | /** Atoms.hh file for the fluxbox compositor. */ | ||
2 | |||
3 | // Copyright (c) 2011 Gediminas Liktaras (gliktaras at gmail dot com) | ||
4 | // | ||
5 | // Permission is hereby granted, free of charge, to any person obtaining a copy | ||
6 | // of this software and associated documentation files (the "Software"), to deal | ||
7 | // in the Software without restriction, including without limitation the rights | ||
8 | // to use, copy, modify, merge, publish, distribute, sublicense, and/or sell | ||
9 | // copies of the Software, and to permit persons to whom the Software is | ||
10 | // furnished to do so, subject to the following conditions: | ||
11 | // | ||
12 | // The above copyright notice and this permission notice shall be included in | ||
13 | // all copies or substantial portions of the Software. | ||
14 | // | ||
15 | // THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR | ||
16 | // IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, | ||
17 | // FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE | ||
18 | // AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER | ||
19 | // LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, | ||
20 | // OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN | ||
21 | // THE SOFTWARE. | ||
22 | |||
23 | |||
24 | #ifndef FBCOMPOSITOR_ATOMS_HH | ||
25 | #define FBCOMPOSITOR_ATOMS_HH | ||
26 | |||
27 | #include "Enumerations.hh" | ||
28 | |||
29 | #include <X11/Xlib.h> | ||
30 | |||
31 | #include <algorithm> | ||
32 | #include <vector> | ||
33 | |||
34 | |||
35 | namespace FbCompositor { | ||
36 | |||
37 | /** | ||
38 | * The main X atom manager. | ||
39 | */ | ||
40 | class Atoms { | ||
41 | public : | ||
42 | //--- MAIN METHODS ----------------------------------------------------- | ||
43 | |||
44 | /** \returns the _NET_ACTIVE_WINDOW atom. */ | ||
45 | static Atom activeWindowAtom(); | ||
46 | |||
47 | /** \returns the _NET_WM_CM_Sxx atoms. */ | ||
48 | static Atom compositingSelectionAtom(int screen_number); | ||
49 | |||
50 | /** \returns the _FLUXBOX_CURRENT_ICONBAR_ITEM atom. */ | ||
51 | static Atom currentIconbarItemAtom(); | ||
52 | |||
53 | /** \returns the _NET_WM_WINDOW_OPACITY atom. */ | ||
54 | static Atom opacityAtom(); | ||
55 | |||
56 | /** \returns the _FLUXBOX_RECONFIGURE_RECT atom. */ | ||
57 | static Atom reconfigureRectAtom(); | ||
58 | |||
59 | /** \returns the atoms that (might) correspond to background pixmap (i.e. wallpapers). */ | ||
60 | static std::vector<Atom> rootPixmapAtoms(); | ||
61 | |||
62 | /** \returns the _NET_WM_WINDOW_TYPE atom. */ | ||
63 | static Atom windowTypeAtom(); | ||
64 | |||
65 | /** \returns a vector with atoms and the correspoding WindowType enum members. */ | ||
66 | static std::vector< std::pair<Atom, WindowType> > windowTypeAtomList(); | ||
67 | |||
68 | /** \returns the _WIN_WORKSPACE atom. */ | ||
69 | static Atom workspaceAtom(); | ||
70 | |||
71 | /** \returns the _WIN_WORKSPACE_COUNT atom. */ | ||
72 | static Atom workspaceCountAtom(); | ||
73 | |||
74 | |||
75 | private : | ||
76 | //--- CONSTRUCTORS ----------------------------------------------------- | ||
77 | |||
78 | /** Default constructor. */ | ||
79 | Atoms(); | ||
80 | |||
81 | /** Copy constructor. */ | ||
82 | Atoms(const Atoms&); | ||
83 | |||
84 | /** Assignment operator. */ | ||
85 | Atoms &operator=(const Atoms&); | ||
86 | }; | ||
87 | } | ||
88 | |||
89 | |||
90 | #endif // FBCOMPOSITOR_ATOMS_HH | ||