From 329ac9d0bb22b41483eaf6f15623891790f7fdbe Mon Sep 17 00:00:00 2001 From: fluxgen Date: Sun, 24 Aug 2003 13:07:01 +0000 Subject: fixed resize signal so objects can resize when the screen size changes --- src/Screen.cc | 6 +++--- src/Screen.hh | 6 ++++-- 2 files changed, 7 insertions(+), 5 deletions(-) diff --git a/src/Screen.cc b/src/Screen.cc index d5379da..285d30a 100644 --- a/src/Screen.cc +++ b/src/Screen.cc @@ -22,7 +22,7 @@ // FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER // DEALINGS IN THE SOFTWARE. -// $Id: Screen.cc,v 1.224 2003/08/24 11:13:36 fluxgen Exp $ +// $Id: Screen.cc,v 1.225 2003/08/24 13:07:01 fluxgen Exp $ #include "Screen.hh" @@ -268,6 +268,7 @@ BScreen::BScreen(FbTk::ResourceManager &rm, m_workspacenames_sig(*this), // workspace names signal m_currentworkspace_sig(*this), // current workspace signal m_reconfigure_sig(*this), // reconfigure signal + m_resize_sig(*this), m_layermanager(num_layers), cycling_focus(false), cycling_last(0), @@ -2248,8 +2249,7 @@ void BScreen::updateSize() { slit()->reconfigure(); #endif // SLIT - //!! TODO: should we re-maximize the maximized windows? - + m_resize_sig.notify(); } diff --git a/src/Screen.hh b/src/Screen.hh index 0f359cb..6efe15d 100644 --- a/src/Screen.hh +++ b/src/Screen.hh @@ -22,7 +22,7 @@ // FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER // DEALINGS IN THE SOFTWARE. -// $Id: Screen.hh,v 1.121 2003/08/12 12:20:48 fluxgen Exp $ +// $Id: Screen.hh,v 1.122 2003/08/24 13:06:38 fluxgen Exp $ #ifndef SCREEN_HH #define SCREEN_HH @@ -151,6 +151,7 @@ public: FbTk::Subject ¤tWorkspaceSig() { return m_currentworkspace_sig; } /// reconfigure signal FbTk::Subject &reconfigureSig() { return m_reconfigure_sig; } + FbTk::Subject &resizeSig() { return m_resize_sig; } //@} /// @return the resource value of number of workspace @@ -353,7 +354,8 @@ private: m_workspacecount_sig, ///< workspace count signal m_workspacenames_sig, ///< workspace names signal m_currentworkspace_sig, ///< current workspace signal - m_reconfigure_sig; ///< reconfigure signal + m_reconfigure_sig, ///< reconfigure signal + m_resize_sig; ///< resize signal FbTk::MultLayers m_layermanager; -- cgit v0.11.2