From 1d58e3afb289dd33ddb1b22533f4d717339ec216 Mon Sep 17 00:00:00 2001 From: rathnor Date: Mon, 15 Mar 2004 03:48:47 +0000 Subject: fix spin bug in placeWindow --- ChangeLog | 4 ++++ src/Workspace.cc | 6 +++--- 2 files changed, 7 insertions(+), 3 deletions(-) diff --git a/ChangeLog b/ChangeLog index 426a43b..fdee23f 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,5 +1,9 @@ (Format: Year/Month/Day) Changes for 0.9.9: +*04/03/15: + * bug in placeWindow caused spinning with screens higher than width + e.g. vertical xinerama (Simon) + Workspace.cc *04/03/13: * Fixed so it compiles in cygwin (Henrik) I18n.hh diff --git a/src/Workspace.cc b/src/Workspace.cc index 6ffbb52..af57d76 100644 --- a/src/Workspace.cc +++ b/src/Workspace.cc @@ -22,7 +22,7 @@ // FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER // DEALINGS IN THE SOFTWARE. -// $Id: Workspace.cc,v 1.92 2004/02/28 16:55:59 fluxgen Exp $ +// $Id: Workspace.cc,v 1.93 2004/03/15 03:48:47 rathnor Exp $ #include "Workspace.hh" @@ -498,9 +498,9 @@ void Workspace::placeWindow(FluxboxWindow &win) { test_x = head_right - win_w; if (top_bot) - next_y = head_right; // it will get shrunk + next_y = head_top; else - next_y = head_left; + next_y = head_bot - win_h; // will be shrunk while (!placed && (left_right ? test_x + win_w < head_right -- cgit v0.11.2