all repos — fluxbox @ b73411a95ffadf8d5c98429b49b08f86071b11dc

custom fork of the fluxbox windowmanager

moved seldom used code to where it is actually used, no need to include code into compilation when its not needed
Mathias Gumz akira at fluxbox dot org
commit

b73411a95ffadf8d5c98429b49b08f86071b11dc

parent

d24e2aae6ed435d045990b6e3ce95de2df629be7

3 files changed, 26 insertions(+), 27 deletions(-)

jump to
M src/FbTk/FbWindow.hhsrc/FbTk/FbWindow.hh

@@ -244,29 +244,6 @@ };

bool operator == (Window win, const FbWindow &fbwin); -/// helper class for some STL routines -class ChangeProperty { -public: - ChangeProperty(Display *disp, Atom prop, int mode, - unsigned char *state, int num):m_disp(disp), - m_prop(prop), - m_state(state), - m_num(num), - m_mode(mode){ - - } - void operator () (FbTk::FbWindow *win) { - XChangeProperty(m_disp, win->window(), m_prop, m_prop, 32, m_mode, - m_state, m_num); - } -private: - Display *m_disp; - Atom m_prop; - unsigned char *m_state; - int m_num; - int m_mode; -}; - /// Interface class to render FbWindow foregrounds. class FbWindowRenderer { public:
M src/ToolFactory.ccsrc/ToolFactory.cc

@@ -41,8 +41,6 @@ #include "Screen.hh"

#include "Toolbar.hh" #include "fluxbox.hh" -#include "FbTk/FbWindow.hh" - #include <utility> namespace {
M src/Window.ccsrc/Window.cc

@@ -234,6 +234,30 @@ private:

WinClient &m_client; }; + +/// helper class for some STL routines +class ChangeProperty { +public: + ChangeProperty(Display *disp, Atom prop, int mode, + unsigned char *state, int num):m_disp(disp), + m_prop(prop), + m_state(state), + m_num(num), + m_mode(mode){ + + } + void operator () (FbTk::FbWindow *win) { + XChangeProperty(m_disp, win->window(), m_prop, m_prop, 32, m_mode, + m_state, m_num); + } +private: + Display *m_disp; + Atom m_prop; + unsigned char *m_state; + int m_num; + int m_mode; +}; + };

@@ -2012,7 +2036,7 @@ Saves blackbox attributes for every client in our list

*/ void FluxboxWindow::saveBlackboxAttribs() { for_each(m_clientlist.begin(), m_clientlist.end(), - FbTk::ChangeProperty( + ChangeProperty( display, FbAtoms::instance()->getFluxboxAttributesAtom(), PropModeReplace,

@@ -2036,7 +2060,7 @@ state[0] = (unsigned long) m_current_state;

state[1] = (unsigned long) None; for_each(m_clientlist.begin(), m_clientlist.end(), - FbTk::ChangeProperty(display, + ChangeProperty(display, FbAtoms::instance()->getWMStateAtom(), PropModeReplace, (unsigned char *)state, 2));