diff options
Diffstat (limited to 'src/Workspace.cc')
-rw-r--r-- | src/Workspace.cc | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/Workspace.cc b/src/Workspace.cc index b377880..4de6a37 100644 --- a/src/Workspace.cc +++ b/src/Workspace.cc | |||
@@ -455,14 +455,14 @@ void Workspace::placeWindow(FluxboxWindow &win) { | |||
455 | if (test_x < head_left) | 455 | if (test_x < head_left) |
456 | test_x = head_left; | 456 | test_x = head_left; |
457 | 457 | ||
458 | if (test_x > head_right) | 458 | if (test_x + win_w > head_right) |
459 | test_x = head_right; | 459 | test_x = head_right - win_w; |
460 | 460 | ||
461 | if (test_y < head_top) | 461 | if (test_y < head_top) |
462 | test_y = head_top; | 462 | test_y = head_top; |
463 | 463 | ||
464 | if (test_y > head_bot) | 464 | if (test_y + win_h > head_bot) |
465 | test_y = head_bot; | 465 | test_y = head_bot - win_h; |
466 | 466 | ||
467 | place_x = test_x; | 467 | place_x = test_x; |
468 | place_y = test_y; | 468 | place_y = test_y; |