aboutsummaryrefslogtreecommitdiff
path: root/src/FluxboxHandler.hh
diff options
context:
space:
mode:
authorHenrik Kinnunen <fluxgen@fluxbox.org>2007-10-17 16:02:07 (GMT)
committerHenrik Kinnunen <fluxgen@fluxbox.org>2007-10-17 16:02:07 (GMT)
commit48e3a31cab2c6b515c26e69878f606a6d4d6df6f (patch)
tree976a0798689d3aa51548f422a41f35240807e354 /src/FluxboxHandler.hh
downloadfbpager-48e3a31cab2c6b515c26e69878f606a6d4d6df6f.zip
fbpager-48e3a31cab2c6b515c26e69878f606a6d4d6df6f.tar.bz2
initial commit
Diffstat (limited to 'src/FluxboxHandler.hh')
-rw-r--r--src/FluxboxHandler.hh58
1 files changed, 58 insertions, 0 deletions
diff --git a/src/FluxboxHandler.hh b/src/FluxboxHandler.hh
new file mode 100644
index 0000000..55546b5
--- /dev/null
+++ b/src/FluxboxHandler.hh
@@ -0,0 +1,58 @@
1// FluxboxHandler.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 FLUXBOXHANDLER_HH
23#define FLUXBOXHANDLER_HH
24
25#include "ClientHandler.hh"
26#include "FbAtoms.hh"
27
28namespace FbPager {
29
30/// @brief client handler implementation for fluxbox
31class FluxboxHandler: public ClientHandler {
32public:
33 FluxboxHandler();
34
35 void setFocus(FbTk::FbWindow &win);
36 void moveResize(FbTk::FbWindow &win) { }
37 void sendToWorkspace(FbTk::FbWindow &win, int workspace);
38 void closeWindow(FbTk::FbWindow &win);
39 bool clientMessage(Pager &pager, XClientMessageEvent &event);
40 void changeWorkspace(int screen_num, int workspace);
41 void setHints(FbTk::FbWindow &win, WindowHint &hints);
42 void getHints(const FbTk::FbWindow &win, WindowHint &hints) const;
43 int numberOfWorkspaces(int screen_num) const;
44 void setDesktopLayout(FbTk::FbWindow &root,
45 Orientation orientation,
46 Corner starting_corner,
47 unsigned int columns, unsigned int rows) {
48 }
49
50 static FluxboxHandler *handler() { return s_handler; }
51private:
52 FbAtoms m_fbatoms;
53 static FluxboxHandler *s_handler;
54};
55
56} // end namespace FbPager
57
58#endif // FLUXBOXHANDLER_HH