aboutsummaryrefslogtreecommitdiff
path: root/src/Netizen.hh
diff options
context:
space:
mode:
Diffstat (limited to 'src/Netizen.hh')
-rw-r--r--src/Netizen.hh31
1 files changed, 14 insertions, 17 deletions
diff --git a/src/Netizen.hh b/src/Netizen.hh
index c9460bb..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//
@@ -22,34 +24,29 @@
22#ifndef NETIZEN_HH 24#ifndef NETIZEN_HH
23#define NETIZEN_HH 25#define NETIZEN_HH
24 26
25// forward declaration
26class Netizen;
27
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 {
35public: 32public:
36 Netizen(BScreen *, Window); 33 Netizen(BScreen *scr, Window w);
37 34
38 inline const Window &getWindowID(void) const { return window; } 35 inline Window getWindowID() const { return window; }
39 36
40 void sendWorkspaceCount(void); 37 void sendWorkspaceCount();
41 void sendCurrentWorkspace(void); 38 void sendCurrentWorkspace();
42 39
43 void sendWindowFocus(Window); 40 void sendWindowFocus(Window w);
44 void sendWindowAdd(Window, unsigned long); 41 void sendWindowAdd(Window w, unsigned long p);
45 void sendWindowDel(Window); 42 void sendWindowDel(Window w);
46 void sendWindowRaise(Window); 43 void sendWindowRaise(Window w);
47 void sendWindowLower(Window); 44 void sendWindowLower(Window w);
48 45
49 void sendConfigNotify(XEvent *); 46 void sendConfigNotify(XEvent *xe);
50private: 47private:
51 BScreen *screen; 48 BScreen *screen;
52 BaseDisplay *basedisplay; 49 Display *m_display; ///< display connection
53 Window window; 50 Window window;
54 XEvent event; 51 XEvent event;
55 52