aboutsummaryrefslogtreecommitdiff
path: root/src/Netizen.hh
diff options
context:
space:
mode:
Diffstat (limited to 'src/Netizen.hh')
-rw-r--r--src/Netizen.hh51
1 files changed, 22 insertions, 29 deletions
diff --git a/src/Netizen.hh b/src/Netizen.hh
index 1c4a2b4..948d0d2 100644
--- a/src/Netizen.hh
+++ b/src/Netizen.hh
@@ -1,3 +1,5 @@
1// Netizen.hh for Fluxbox
2// Copyright (c) 2002 Henrik Kinnunen (fluxgen@linuxmail.org)
1// Netizen.hh for Blackbox - An X11 Window Manager 3// Netizen.hh for Blackbox - An X11 Window Manager
2// Copyright (c) 1997 - 2000 Brad Hughes (bhughes@tcac.net) 4// Copyright (c) 1997 - 2000 Brad Hughes (bhughes@tcac.net)
3// 5//
@@ -13,50 +15,41 @@
13// 15//
14// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 16// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
15// IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 17// IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
16// FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL 18// 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 19// 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 20// 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 21// FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
20// DEALINGS IN THE SOFTWARE. 22// DEALINGS IN THE SOFTWARE.
21 23
22#ifndef _NETIZEN_HH_ 24#ifndef NETIZEN_HH
23#define _NETIZEN_HH_ 25#define NETIZEN_HH
24
25// forward declaration
26class Netizen;
27 26
28#include <X11/Xlib.h> 27#include <X11/Xlib.h>
29 28
30#include "BaseDisplay.hh" 29class BScreen;
31#include "Screen.hh"
32
33 30
34class Netizen { 31class Netizen {
35private:
36 BaseDisplay *basedisplay;
37 BScreen *screen;
38 Window window;
39 XEvent event;
40
41
42protected:
43
44
45public: 32public:
46 Netizen(BScreen *, Window); 33 Netizen(BScreen *scr, Window w);
47 34
48 inline const Window &getWindowID(void) const { return window; } 35 inline Window getWindowID() const { return window; }
49 36
50 void sendWorkspaceCount(void); 37 void sendWorkspaceCount();
51 void sendCurrentWorkspace(void); 38 void sendCurrentWorkspace();
52 39
53 void sendWindowFocus(Window); 40 void sendWindowFocus(Window w);
54 void sendWindowAdd(Window, unsigned long); 41 void sendWindowAdd(Window w, unsigned long p);
55 void sendWindowDel(Window); 42 void sendWindowDel(Window w);
56 void sendWindowRaise(Window); 43 void sendWindowRaise(Window w);
57 void sendWindowLower(Window); 44 void sendWindowLower(Window w);
45
46 void sendConfigNotify(XEvent *xe);
47private:
48 BScreen *screen;
49 Display *m_display; ///< display connection
50 Window window;
51 XEvent event;
58 52
59 void sendConfigNotify(XEvent *);
60}; 53};
61 54
62 55