aboutsummaryrefslogtreecommitdiff
path: root/src/Netizen.cc
diff options
context:
space:
mode:
authorrathnor <rathnor>2002-12-01 13:42:15 (GMT)
committerrathnor <rathnor>2002-12-01 13:42:15 (GMT)
commit28b5c604490094e187494dcc566bd3d7a05a2c25 (patch)
tree8f78f5714a5cd055c10b067a2656fe7b2338e71a /src/Netizen.cc
parentb9134162f9633784d9097df18769a699a62650fe (diff)
downloadfluxbox-28b5c604490094e187494dcc566bd3d7a05a2c25.zip
fluxbox-28b5c604490094e187494dcc566bd3d7a05a2c25.tar.bz2
Indenting from tabs to emacs 4-space
Diffstat (limited to 'src/Netizen.cc')
-rw-r--r--src/Netizen.cc74
1 files changed, 37 insertions, 37 deletions
diff --git a/src/Netizen.cc b/src/Netizen.cc
index 49f127a..28019d0 100644
--- a/src/Netizen.cc
+++ b/src/Netizen.cc
@@ -25,84 +25,84 @@
25#include "FbAtoms.hh" 25#include "FbAtoms.hh"
26 26
27Netizen::Netizen(const BScreen * const scr, Window win): 27Netizen::Netizen(const BScreen * const scr, Window win):
28m_screen(scr), 28 m_screen(scr),
29m_display(BaseDisplay::getXDisplay()), 29 m_display(BaseDisplay::getXDisplay()),
30window(win) { 30 window(win) {
31 window = win; 31 window = win;
32 32
33 event.type = ClientMessage; 33 event.type = ClientMessage;
34 event.xclient.message_type = FbAtoms::instance()->getFluxboxStructureMessagesAtom(); 34 event.xclient.message_type = FbAtoms::instance()->getFluxboxStructureMessagesAtom();
35 event.xclient.display = m_display; 35 event.xclient.display = m_display;
36 event.xclient.window = window; 36 event.xclient.window = window;
37 event.xclient.format = 32; 37 event.xclient.format = 32;
38 event.xclient.data.l[0] = FbAtoms::instance()->getFluxboxNotifyStartupAtom(); 38 event.xclient.data.l[0] = FbAtoms::instance()->getFluxboxNotifyStartupAtom();
39 event.xclient.data.l[1] = event.xclient.data.l[2] = 39 event.xclient.data.l[1] = event.xclient.data.l[2] =
40 event.xclient.data.l[3] = event.xclient.data.l[4] = 0l; 40 event.xclient.data.l[3] = event.xclient.data.l[4] = 0l;
41 41
42 XSendEvent(m_display, window, False, NoEventMask, &event); 42 XSendEvent(m_display, window, False, NoEventMask, &event);
43} 43}
44 44
45 45
46void Netizen::sendWorkspaceCount() { 46void Netizen::sendWorkspaceCount() {
47 47
48 event.xclient.data.l[0] = FbAtoms::instance()->getFluxboxNotifyWorkspaceCountAtom(); 48 event.xclient.data.l[0] = FbAtoms::instance()->getFluxboxNotifyWorkspaceCountAtom();
49 event.xclient.data.l[1] = m_screen->getCount(); 49 event.xclient.data.l[1] = m_screen->getCount();
50 50
51 XSendEvent(m_display, window, False, NoEventMask, &event); 51 XSendEvent(m_display, window, False, NoEventMask, &event);
52} 52}
53 53
54 54
55void Netizen::sendCurrentWorkspace() { 55void Netizen::sendCurrentWorkspace() {
56 56
57 event.xclient.data.l[0] = FbAtoms::instance()->getFluxboxNotifyCurrentWorkspaceAtom(); 57 event.xclient.data.l[0] = FbAtoms::instance()->getFluxboxNotifyCurrentWorkspaceAtom();
58 event.xclient.data.l[1] = m_screen->getCurrentWorkspaceID(); 58 event.xclient.data.l[1] = m_screen->getCurrentWorkspaceID();
59 59
60 XSendEvent(m_display, window, False, NoEventMask, &event); 60 XSendEvent(m_display, window, False, NoEventMask, &event);
61} 61}
62 62
63 63
64void Netizen::sendWindowFocus(Window w) { 64void Netizen::sendWindowFocus(Window w) {
65 event.xclient.data.l[0] = FbAtoms::instance()->getFluxboxNotifyWindowFocusAtom(); 65 event.xclient.data.l[0] = FbAtoms::instance()->getFluxboxNotifyWindowFocusAtom();
66 event.xclient.data.l[1] = w; 66 event.xclient.data.l[1] = w;
67 67
68 XSendEvent(m_display, window, False, NoEventMask, &event); 68 XSendEvent(m_display, window, False, NoEventMask, &event);
69} 69}
70 70
71 71
72void Netizen::sendWindowAdd(Window w, unsigned long p) { 72void Netizen::sendWindowAdd(Window w, unsigned long p) {
73 event.xclient.data.l[0] = FbAtoms::instance()->getFluxboxNotifyWindowAddAtom(); 73 event.xclient.data.l[0] = FbAtoms::instance()->getFluxboxNotifyWindowAddAtom();
74 event.xclient.data.l[1] = w; 74 event.xclient.data.l[1] = w;
75 event.xclient.data.l[2] = p; 75 event.xclient.data.l[2] = p;
76 76
77 XSendEvent(m_display, window, False, NoEventMask, &event); 77 XSendEvent(m_display, window, False, NoEventMask, &event);
78 78
79 event.xclient.data.l[2] = 0l; 79 event.xclient.data.l[2] = 0l;
80} 80}
81 81
82 82
83void Netizen::sendWindowDel(Window w) { 83void Netizen::sendWindowDel(Window w) {
84 event.xclient.data.l[0] = FbAtoms::instance()->getFluxboxNotifyWindowDelAtom(); 84 event.xclient.data.l[0] = FbAtoms::instance()->getFluxboxNotifyWindowDelAtom();
85 event.xclient.data.l[1] = w; 85 event.xclient.data.l[1] = w;
86 86
87 XSendEvent(m_display, window, False, NoEventMask, &event); 87 XSendEvent(m_display, window, False, NoEventMask, &event);
88} 88}
89 89
90 90
91void Netizen::sendWindowRaise(Window w) { 91void Netizen::sendWindowRaise(Window w) {
92 event.xclient.data.l[0] = FbAtoms::instance()->getFluxboxNotifyWindowRaiseAtom(); 92 event.xclient.data.l[0] = FbAtoms::instance()->getFluxboxNotifyWindowRaiseAtom();
93 event.xclient.data.l[1] = w; 93 event.xclient.data.l[1] = w;
94 94
95 XSendEvent(m_display, window, False, NoEventMask, &event); 95 XSendEvent(m_display, window, False, NoEventMask, &event);
96} 96}
97 97
98 98
99void Netizen::sendWindowLower(Window w) { 99void Netizen::sendWindowLower(Window w) {
100 event.xclient.data.l[0] = FbAtoms::instance()->getFluxboxNotifyWindowLowerAtom(); 100 event.xclient.data.l[0] = FbAtoms::instance()->getFluxboxNotifyWindowLowerAtom();
101 event.xclient.data.l[1] = w; 101 event.xclient.data.l[1] = w;
102 102
103 XSendEvent(m_display, window, False, NoEventMask, &event); 103 XSendEvent(m_display, window, False, NoEventMask, &event);
104} 104}
105 105
106void Netizen::sendConfigNotify(XEvent *e) { 106void Netizen::sendConfigNotify(XEvent *e) {
107 XSendEvent(m_display, window, False, StructureNotifyMask, e); 107 XSendEvent(m_display, window, False, StructureNotifyMask, e);
108} 108}