remove some unnecessary code
Mark Tiefenbruck mark@fluxbox.org
4 files changed,
4 insertions(+),
25 deletions(-)
M
src/FbWinFrame.cc
→
src/FbWinFrame.cc
@@ -90,10 +90,8 @@ m_height_before_shade(1),
m_shaded(false), m_focused_alpha(AlphaAcc(theme, &FbWinFrameTheme::focusedAlpha)), m_unfocused_alpha(AlphaAcc(theme, &FbWinFrameTheme::unfocusedAlpha)), - m_themelistener(*this), m_shape(m_window, theme.shapePlace()), m_disable_themeshape(false) { - m_theme.reconfigSig().attach(&m_themelistener); init(); }
M
src/FbWinFrame.hh
→
src/FbWinFrame.hh
@@ -396,16 +396,6 @@ typedef FbTk::ConstObjectAccessor<unsigned char, FbWinFrameTheme> AlphaAcc;
FbTk::DefaultValue<unsigned char, AlphaAcc> m_focused_alpha; FbTk::DefaultValue<unsigned char, AlphaAcc> m_unfocused_alpha; - class ThemeListener: public FbTk::Observer { - public: - ThemeListener(FbWinFrame &frame):m_frame(frame) { } - void update(FbTk::Subject *) { - m_frame.reconfigure(); - } - private: - FbWinFrame &m_frame; - }; - ThemeListener m_themelistener; FbTk::Shape m_shape; bool m_disable_themeshape;
M
src/Window.cc
→
src/Window.cc
@@ -269,7 +269,6 @@ m_hintsig(*this),
m_statesig(*this), m_layersig(*this), m_workspacesig(*this), - m_themelistener(*this), m_creation_time(0), moving(false), resizing(false), shaded(false), iconic(false), stuck(false), m_initialized(false), fullscreen(false),@@ -299,7 +298,7 @@ m_old_layernum(0),
m_parent(client.screen().rootWindow()), m_resize_corner(RIGHTBOTTOM) { - tm.reconfigSig().attach(&m_themelistener); + tm.reconfigSig().attach(this); init();@@ -3011,6 +3010,9 @@ if (subj == &screen().focusedWindowSig()) {
if (FocusControl::focusedFbWindow()) setFullscreenLayer(); } + } else if (subj == &frame().theme().reconfigSig()) { + reconfigTheme(); + frame().reconfigure(); } }
M
src/Window.hh
→
src/Window.hh
@@ -556,17 +556,6 @@ m_statesig,
m_layersig, m_workspacesig; - class ThemeListener: public FbTk::Observer { - public: - ThemeListener(FluxboxWindow &win):m_win(win) { } - void update(FbTk::Subject *) { - m_win.reconfigTheme(); - } - private: - FluxboxWindow &m_win; - }; - ThemeListener m_themelistener; - time_t m_creation_time; // Window states