diff options
-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; |