diff options
author | Michal Zime <michal dot zimen at gmail dot com> | 2009-11-23 20:11:04 (GMT) |
---|---|---|
committer | Mathias Gumz <akira at fluxbox dot org> | 2009-11-23 20:11:04 (GMT) |
commit | 69d80c590579f0aa7a711a0c42e440a05c6ff260 (patch) | |
tree | 7b6b05b92732b912beb450b1fc56be527797dfc6 /src | |
parent | 8def80cec337a986b762cdbb5e2555c6da809353 (diff) | |
download | fluxbox_paul-69d80c590579f0aa7a711a0c42e440a05c6ff260.zip fluxbox_paul-69d80c590579f0aa7a711a0c42e440a05c6ff260.tar.bz2 |
Keep 'maximum/fullscreen' when moving a window between different heads
Diffstat (limited to 'src')
-rw-r--r-- | src/Window.cc | 14 |
1 files changed, 14 insertions, 0 deletions
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 | ||
3772 | void FluxboxWindow::placeWindow(int head) { | 3786 | void FluxboxWindow::placeWindow(int head) { |