summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichal Zime <michal dot zimen at gmail dot com>2009-11-23 20:11:04 (GMT)
committerMathias Gumz <akira at fluxbox dot org>2009-11-23 20:11:04 (GMT)
commit69d80c590579f0aa7a711a0c42e440a05c6ff260 (patch)
tree7b6b05b92732b912beb450b1fc56be527797dfc6
parent8def80cec337a986b762cdbb5e2555c6da809353 (diff)
downloadfluxbox_lack-69d80c590579f0aa7a711a0c42e440a05c6ff260.zip
fluxbox_lack-69d80c590579f0aa7a711a0c42e440a05c6ff260.tar.bz2
Keep 'maximum/fullscreen' when moving a window between different heads
-rw-r--r--ChangeLog5
-rw-r--r--src/Window.cc14
2 files changed, 19 insertions, 0 deletions
diff --git a/ChangeLog b/ChangeLog
index d3745d3..fe03f58 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,6 +1,11 @@
1 (Format: Year/Month/Day) 1 (Format: Year/Month/Day)
2Changes for 1.1.2 2Changes for 1.1.2
3 3
4*09/11/23:
5 * Keep 'maximized/fullscreen' state when changing the current head of a
6 window (thanks Michal Zimen)
7 Window.cc
8
4*09/10/03: 9*09/10/03:
5 * Build system cleanup: Check for extension headers (Mathias) 10 * Build system cleanup: Check for extension headers (Mathias)
6 autogen.sh configure.in, removed 'missing' file 11 autogen.sh configure.in, removed 'missing' file
diff --git a/src/Window.cc b/src/Window.cc
index 34b92e1..c03447c 100644
--- a/src/Window.cc
+++ b/src/Window.cc
@@ -2884,6 +2884,13 @@ void FluxboxWindow::stopMoving(bool interrupted) {
2884 ungrabPointer(CurrentTime); 2884 ungrabPointer(CurrentTime);
2885 2885
2886 FbTk::App::instance()->sync(false); //make sure the redraw is made before we continue 2886 FbTk::App::instance()->sync(false); //make sure the redraw is made before we continue
2887
2888 // if Head has been changed we want it to redraw by current state
2889 if (m_state.maximized || m_state.fullscreen) {
2890 frame().applyState();
2891 attachWorkAreaSig();
2892 stateSig().notify();
2893 }
2887} 2894}
2888 2895
2889/** 2896/**
@@ -3767,6 +3774,13 @@ void FluxboxWindow::setOnHead(int head) {
3767 screen().getHeadY(head) + frame().y() - screen().getHeadY(cur)); 3774 screen().getHeadY(head) + frame().y() - screen().getHeadY(cur));
3768 m_placed = placed; 3775 m_placed = placed;
3769 } 3776 }
3777
3778 // if Head has been changed we want it to redraw by current state
3779 if (m_state.maximized || m_state.fullscreen) {
3780 frame().applyState();
3781 attachWorkAreaSig();
3782 stateSig().notify();
3783 }
3770} 3784}
3771 3785
3772void FluxboxWindow::placeWindow(int head) { 3786void FluxboxWindow::placeWindow(int head) {