diff options
Diffstat (limited to 'src/Netizen.cc')
-rw-r--r-- | src/Netizen.cc | 20 |
1 files changed, 6 insertions, 14 deletions
diff --git a/src/Netizen.cc b/src/Netizen.cc index bfc32a0..49f127a 100644 --- a/src/Netizen.cc +++ b/src/Netizen.cc | |||
@@ -22,19 +22,11 @@ | |||
22 | #include "Netizen.hh" | 22 | #include "Netizen.hh" |
23 | 23 | ||
24 | #include "Screen.hh" | 24 | #include "Screen.hh" |
25 | #include "FbAtoms.hh" | ||
25 | 26 | ||
26 | // use GNU extensions | 27 | Netizen::Netizen(const BScreen * const scr, Window win): |
27 | #ifndef _GNU_SOURCE | 28 | m_screen(scr), |
28 | #define _GNU_SOURCE | 29 | m_display(BaseDisplay::getXDisplay()), |
29 | #endif // _GNU_SOURCE | ||
30 | |||
31 | #ifdef HAVE_CONFIG_H | ||
32 | #include "../config.h" | ||
33 | #endif // HAVE_CONFIG_H | ||
34 | |||
35 | Netizen::Netizen(BScreen *scr, Window win): | ||
36 | screen(scr), | ||
37 | m_display(scr->getBaseDisplay()->getXDisplay()), | ||
38 | window(win) { | 30 | window(win) { |
39 | window = win; | 31 | window = win; |
40 | 32 | ||
@@ -54,7 +46,7 @@ window(win) { | |||
54 | void Netizen::sendWorkspaceCount() { | 46 | void Netizen::sendWorkspaceCount() { |
55 | 47 | ||
56 | event.xclient.data.l[0] = FbAtoms::instance()->getFluxboxNotifyWorkspaceCountAtom(); | 48 | event.xclient.data.l[0] = FbAtoms::instance()->getFluxboxNotifyWorkspaceCountAtom(); |
57 | event.xclient.data.l[1] = screen->getCount(); | 49 | event.xclient.data.l[1] = m_screen->getCount(); |
58 | 50 | ||
59 | XSendEvent(m_display, window, False, NoEventMask, &event); | 51 | XSendEvent(m_display, window, False, NoEventMask, &event); |
60 | } | 52 | } |
@@ -63,7 +55,7 @@ void Netizen::sendWorkspaceCount() { | |||
63 | void Netizen::sendCurrentWorkspace() { | 55 | void Netizen::sendCurrentWorkspace() { |
64 | 56 | ||
65 | event.xclient.data.l[0] = FbAtoms::instance()->getFluxboxNotifyCurrentWorkspaceAtom(); | 57 | event.xclient.data.l[0] = FbAtoms::instance()->getFluxboxNotifyCurrentWorkspaceAtom(); |
66 | event.xclient.data.l[1] = screen->getCurrentWorkspaceID(); | 58 | event.xclient.data.l[1] = m_screen->getCurrentWorkspaceID(); |
67 | 59 | ||
68 | XSendEvent(m_display, window, False, NoEventMask, &event); | 60 | XSendEvent(m_display, window, False, NoEventMask, &event); |
69 | } | 61 | } |