diff options
author | Henrik Kinnunen <fluxgen@fluxbox.org> | 2007-10-17 16:02:07 (GMT) |
---|---|---|
committer | Henrik Kinnunen <fluxgen@fluxbox.org> | 2007-10-17 16:02:07 (GMT) |
commit | 48e3a31cab2c6b515c26e69878f606a6d4d6df6f (patch) | |
tree | 976a0798689d3aa51548f422a41f35240807e354 /src/Ewmh.hh | |
download | fbpager-48e3a31cab2c6b515c26e69878f606a6d4d6df6f.zip fbpager-48e3a31cab2c6b515c26e69878f606a6d4d6df6f.tar.bz2 |
initial commit
Diffstat (limited to 'src/Ewmh.hh')
-rw-r--r-- | src/Ewmh.hh | 57 |
1 files changed, 57 insertions, 0 deletions
diff --git a/src/Ewmh.hh b/src/Ewmh.hh new file mode 100644 index 0000000..68c42b2 --- /dev/null +++ b/src/Ewmh.hh | |||
@@ -0,0 +1,57 @@ | |||
1 | // Ewmh.hh for FbPager | ||
2 | // Copyright (c) 2004 Henrik Kinnunen (fluxgen at users.sourceforge.net) | ||
3 | // | ||
4 | // Permission is hereby granted, free of charge, to any person obtaining a | ||
5 | // copy of this software and associated documentation files (the "Software"), | ||
6 | // to deal in the Software without restriction, including without limitation | ||
7 | // the rights to use, copy, modify, merge, publish, distribute, sublicense, | ||
8 | // and/or sell copies of the Software, and to permit persons to whom the | ||
9 | // Software is furnished to do so, subject to the following conditions: | ||
10 | // | ||
11 | // The above copyright notice and this permission notice shall be included in | ||
12 | // all copies or substantial portions of the Software. | ||
13 | // | ||
14 | // THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR | ||
15 | // IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, | ||
16 | // FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL | ||
17 | // THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER | ||
18 | // LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING | ||
19 | // FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER | ||
20 | // DEALINGS IN THE SOFTWARE. | ||
21 | |||
22 | #ifndef EWMH_HH | ||
23 | #define EWMH_HH | ||
24 | |||
25 | #include "ClientHandler.hh" | ||
26 | #include <memory> | ||
27 | |||
28 | namespace FbPager { | ||
29 | |||
30 | class Ewmh_priv; | ||
31 | |||
32 | class Ewmh: public ClientHandler { | ||
33 | public: | ||
34 | Ewmh(); | ||
35 | ~Ewmh(); | ||
36 | void setFocus(FbTk::FbWindow &win); | ||
37 | void moveResize(FbTk::FbWindow &win); | ||
38 | void sendToWorkspace(FbTk::FbWindow &win, int workspace); | ||
39 | void closeWindow(FbTk::FbWindow &win); | ||
40 | bool clientMessage(Pager &pager, XClientMessageEvent &event); | ||
41 | void changeWorkspace(int screen_num, int workspace); | ||
42 | void setHints(FbTk::FbWindow &win, WindowHint &hint); | ||
43 | void getHints(const FbTk::FbWindow &win, WindowHint &hint) const; | ||
44 | int numberOfWorkspaces(int screen_num) const; | ||
45 | void setDesktopLayout(FbTk::FbWindow &root, | ||
46 | Orientation orientation, | ||
47 | Corner starting_corner, | ||
48 | unsigned int columns, unsigned int rows); | ||
49 | private: | ||
50 | bool m_support; | ||
51 | std::auto_ptr<Ewmh_priv> m_data; | ||
52 | }; | ||
53 | |||
54 | } // end namespace FbPager | ||
55 | |||
56 | #endif // EWMH_HH | ||
57 | |||