aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authormathias <mathias>2004-11-22 08:30:23 (GMT)
committermathias <mathias>2004-11-22 08:30:23 (GMT)
commit24119724db95e9cdf3a6fbc079832ff092364965 (patch)
treec1d8c2d66cc45a68a88882a8a9535434d08de159 /src
parentf471045e17484d2782ca565e53264a6c23d30c09 (diff)
downloadfluxbox-24119724db95e9cdf3a6fbc079832ff092364965.zip
fluxbox-24119724db95e9cdf3a6fbc079832ff092364965.tar.bz2
undermouseplacement .. ensure the new window is on the screen. patch #1052534, close #1048000
Diffstat (limited to 'src')
-rw-r--r--src/Workspace.cc8
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;