aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorfluxgen <fluxgen>2003-08-24 13:07:01 (GMT)
committerfluxgen <fluxgen>2003-08-24 13:07:01 (GMT)
commit329ac9d0bb22b41483eaf6f15623891790f7fdbe (patch)
tree866d3eed4e740e02cb3e8fe0806d914339af3242 /src
parentd509be7ac9a01ad5e2de4e4de510788ada3c8a60 (diff)
downloadfluxbox_paul-329ac9d0bb22b41483eaf6f15623891790f7fdbe.zip
fluxbox_paul-329ac9d0bb22b41483eaf6f15623891790f7fdbe.tar.bz2
fixed resize signal so objects can resize when the screen size changes
Diffstat (limited to 'src')
-rw-r--r--src/Screen.cc6
-rw-r--r--src/Screen.hh6
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 @@
22// FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER 22// FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
23// DEALINGS IN THE SOFTWARE. 23// DEALINGS IN THE SOFTWARE.
24 24
25// $Id: Screen.cc,v 1.224 2003/08/24 11:13:36 fluxgen Exp $ 25// $Id: Screen.cc,v 1.225 2003/08/24 13:07:01 fluxgen Exp $
26 26
27 27
28#include "Screen.hh" 28#include "Screen.hh"
@@ -268,6 +268,7 @@ BScreen::BScreen(FbTk::ResourceManager &rm,
268 m_workspacenames_sig(*this), // workspace names signal 268 m_workspacenames_sig(*this), // workspace names signal
269 m_currentworkspace_sig(*this), // current workspace signal 269 m_currentworkspace_sig(*this), // current workspace signal
270 m_reconfigure_sig(*this), // reconfigure signal 270 m_reconfigure_sig(*this), // reconfigure signal
271 m_resize_sig(*this),
271 m_layermanager(num_layers), 272 m_layermanager(num_layers),
272 cycling_focus(false), 273 cycling_focus(false),
273 cycling_last(0), 274 cycling_last(0),
@@ -2248,8 +2249,7 @@ void BScreen::updateSize() {
2248 slit()->reconfigure(); 2249 slit()->reconfigure();
2249#endif // SLIT 2250#endif // SLIT
2250 2251
2251 //!! TODO: should we re-maximize the maximized windows? 2252 m_resize_sig.notify();
2252
2253} 2253}
2254 2254
2255 2255
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 @@
22// FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER 22// FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
23// DEALINGS IN THE SOFTWARE. 23// DEALINGS IN THE SOFTWARE.
24 24
25// $Id: Screen.hh,v 1.121 2003/08/12 12:20:48 fluxgen Exp $ 25// $Id: Screen.hh,v 1.122 2003/08/24 13:06:38 fluxgen Exp $
26 26
27#ifndef SCREEN_HH 27#ifndef SCREEN_HH
28#define SCREEN_HH 28#define SCREEN_HH
@@ -151,6 +151,7 @@ public:
151 FbTk::Subject &currentWorkspaceSig() { return m_currentworkspace_sig; } 151 FbTk::Subject &currentWorkspaceSig() { return m_currentworkspace_sig; }
152 /// reconfigure signal 152 /// reconfigure signal
153 FbTk::Subject &reconfigureSig() { return m_reconfigure_sig; } 153 FbTk::Subject &reconfigureSig() { return m_reconfigure_sig; }
154 FbTk::Subject &resizeSig() { return m_resize_sig; }
154 //@} 155 //@}
155 156
156 /// @return the resource value of number of workspace 157 /// @return the resource value of number of workspace
@@ -353,7 +354,8 @@ private:
353 m_workspacecount_sig, ///< workspace count signal 354 m_workspacecount_sig, ///< workspace count signal
354 m_workspacenames_sig, ///< workspace names signal 355 m_workspacenames_sig, ///< workspace names signal
355 m_currentworkspace_sig, ///< current workspace signal 356 m_currentworkspace_sig, ///< current workspace signal
356 m_reconfigure_sig; ///< reconfigure signal 357 m_reconfigure_sig, ///< reconfigure signal
358 m_resize_sig; ///< resize signal
357 359
358 FbTk::MultLayers m_layermanager; 360 FbTk::MultLayers m_layermanager;
359 361