all repos — fluxbox @ 24119724db95e9cdf3a6fbc079832ff092364965

custom fork of the fluxbox windowmanager

undermouseplacement .. ensure the new window is on the screen. patch #1052534, close #1048000
mathias mathias
commit

24119724db95e9cdf3a6fbc079832ff092364965

parent

f471045e17484d2782ca565e53264a6c23d30c09

1 files changed, 4 insertions(+), 4 deletions(-)

jump to
M src/Workspace.ccsrc/Workspace.cc

@@ -455,14 +455,14 @@

if (test_x < head_left) test_x = head_left; - if (test_x > head_right) - test_x = head_right; + if (test_x + win_w > head_right) + test_x = head_right - win_w; if (test_y < head_top) test_y = head_top; - if (test_y > head_bot) - test_y = head_bot; + if (test_y + win_h > head_bot) + test_y = head_bot - win_h; place_x = test_x; place_y = test_y;