From ff49160b120edd8d9396f10dab5a97bace8724ec Mon Sep 17 00:00:00 2001 From: Pavel Labath Date: Fri, 6 May 2011 22:59:13 +0200 Subject: Convert FluxboxWindow::hintSig to FbTk::Signal --- src/Window.cc | 3 +-- src/Window.hh | 6 ++---- 2 files changed, 3 insertions(+), 6 deletions(-) diff --git a/src/Window.cc b/src/Window.cc index 11d46bc..b3c0698 100644 --- a/src/Window.cc +++ b/src/Window.cc @@ -259,7 +259,6 @@ int FluxboxWindow::s_num_grabs = 0; FluxboxWindow::FluxboxWindow(WinClient &client): Focusable(client.screen(), this), oplock(false), - m_hintsig(*this), m_creation_time(0), moving(false), resizing(false), m_initialized(false), @@ -2087,7 +2086,7 @@ void FluxboxWindow::propertyNotifyEvent(WinClient &client, Atom atom) { client.updateWMHints(); titleSig().emit(title().logical(), *this); // nothing uses this yet - // hintSig().notify(); // notify listeners + // hintSig().emit(*this); break; case XA_WM_ICON_NAME: diff --git a/src/Window.hh b/src/Window.hh index 73b6338..966631d 100644 --- a/src/Window.hh +++ b/src/Window.hh @@ -460,8 +460,7 @@ public: */ FbTk::Signal &stateSig() { return m_statesig; } FbTk::Signal &layerSig() { return m_layersig; } - FbTk::Subject &hintSig() { return m_hintsig; } - const FbTk::Subject &hintSig() const { return m_hintsig; } + FbTk::Signal &hintSig() { return m_hintsig; } FbTk::Signal &workspaceSig() { return m_workspacesig; } /** @} */ // end group signals @@ -538,8 +537,7 @@ private: // state and hint signals - WinSubject m_hintsig; - FbTk::Signal m_workspacesig, m_statesig, m_layersig; + FbTk::Signal m_workspacesig, m_statesig, m_layersig, m_hintsig; time_t m_creation_time; -- cgit v0.11.2