aboutsummaryrefslogtreecommitdiff
path: root/src/Netizen.cc
diff options
context:
space:
mode:
Diffstat (limited to 'src/Netizen.cc')
-rw-r--r--src/Netizen.cc20
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 27Netizen::Netizen(const BScreen * const scr, Window win):
27#ifndef _GNU_SOURCE 28m_screen(scr),
28#define _GNU_SOURCE 29m_display(BaseDisplay::getXDisplay()),
29#endif // _GNU_SOURCE
30
31#ifdef HAVE_CONFIG_H
32#include "../config.h"
33#endif // HAVE_CONFIG_H
34
35Netizen::Netizen(BScreen *scr, Window win):
36screen(scr),
37m_display(scr->getBaseDisplay()->getXDisplay()),
38window(win) { 30window(win) {
39 window = win; 31 window = win;
40 32
@@ -54,7 +46,7 @@ window(win) {
54void Netizen::sendWorkspaceCount() { 46void 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() {
63void Netizen::sendCurrentWorkspace() { 55void 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}