all repos — fluxbox @ 1df87f87ab5a1b2bdc2ef960ee73a051fce9385e

custom fork of the fluxbox windowmanager

const, variable fix
fluxgen fluxgen
commit

1df87f87ab5a1b2bdc2ef960ee73a051fce9385e

parent

76f20728b953cb82d0de843d3eba672926a9071a

1 files changed, 6 insertions(+), 14 deletions(-)

jump to
M src/Netizen.ccsrc/Netizen.cc

@@ -22,19 +22,11 @@

#include "Netizen.hh" #include "Screen.hh" - -// use GNU extensions -#ifndef _GNU_SOURCE -#define _GNU_SOURCE -#endif // _GNU_SOURCE - -#ifdef HAVE_CONFIG_H -#include "../config.h" -#endif // HAVE_CONFIG_H +#include "FbAtoms.hh" -Netizen::Netizen(BScreen *scr, Window win): -screen(scr), -m_display(scr->getBaseDisplay()->getXDisplay()), +Netizen::Netizen(const BScreen * const scr, Window win): +m_screen(scr), +m_display(BaseDisplay::getXDisplay()), window(win) { window = win;

@@ -54,7 +46,7 @@

void Netizen::sendWorkspaceCount() { event.xclient.data.l[0] = FbAtoms::instance()->getFluxboxNotifyWorkspaceCountAtom(); - event.xclient.data.l[1] = screen->getCount(); + event.xclient.data.l[1] = m_screen->getCount(); XSendEvent(m_display, window, False, NoEventMask, &event); }

@@ -63,7 +55,7 @@

void Netizen::sendCurrentWorkspace() { event.xclient.data.l[0] = FbAtoms::instance()->getFluxboxNotifyCurrentWorkspaceAtom(); - event.xclient.data.l[1] = screen->getCurrentWorkspaceID(); + event.xclient.data.l[1] = m_screen->getCurrentWorkspaceID(); XSendEvent(m_display, window, False, NoEventMask, &event); }