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