diff options
author | Thomas E. Dickey <dickey@invisible-island.net> | 2019-07-16 16:59:53 -0400 |
---|---|---|
committer | Thomas E. Dickey <dickey@invisible-island.net> | 2019-07-16 16:59:53 -0400 |
commit | b09c794f975d4b11685ac31884b8a6fd73b1ff15 (patch) | |
tree | 04aad3cb62018cc13b03b369619f94c2a8dfbb91 | |
parent | 7545239de1666f9d1c2027ded3b3af053c1eb6f5 (diff) | |
parent | 6b4b0fb50a75d9336a123899138cc479d6d9765d (diff) |
Merge branch 'master' into dickey
-rw-r--r-- | src/add_window.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/src/add_window.c b/src/add_window.c index 74fd7bf..cb5be4e 100644 --- a/src/add_window.c +++ b/src/add_window.c @@ -658,8 +658,8 @@ AddWindow(Window w, int iconm, IconMgr *iconp) } else if (event.xbutton.button == Button3) { - int maxw = Scr->MyDisplayWidth - AddingX - bw2; - int maxh = Scr->MyDisplayHeight - AddingY - bw2; + int maxw = Scr->MyDisplayWidth - AddingX; + int maxh = Scr->MyDisplayHeight - AddingY; /* * Make window go to bottom of screen, and clip to right edge. @@ -669,6 +669,8 @@ AddWindow(Window w, int iconm, IconMgr *iconp) if (AddingW > maxw) AddingW = maxw; AddingH = maxh; + AddingW -= bw2; + AddingH -= bw2; ConstrainSize (tmp_win, &AddingW, &AddingH); /* w/o borders */ AddingW += bw2; AddingH += bw2; |