fix spin bug in placeWindow

This commit is contained in:
rathnor 2004-03-15 03:48:47 +00:00
parent d5871837d8
commit 1d58e3afb2
2 changed files with 7 additions and 3 deletions

View file

@ -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

View file

@ -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