summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDaniel Stone <daniel@fooishbar.org>2005-07-11 22:51:03 +0000
committerDaniel Stone <daniel@fooishbar.org>2005-07-11 22:51:03 +0000
commit1cb0150431562d729342c427129732b217526bab (patch)
tree29f1bbf83ee28f330d63a9fec3e3bdc76a764ebd
parent682eaa7cd21e32f70d909aae7d4828c9f4ea9dd1 (diff)
Bug #3754: Fix window misplacement in twm. (Christopher Mario Mae)XORG-6_8_99_15
-rw-r--r--src/resize.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/resize.c b/src/resize.c
index bed9a49..2f114e1 100644
--- a/src/resize.c
+++ b/src/resize.c
@@ -595,8 +595,8 @@ AddEndResize(TwmWindow *tmp_win)
#endif
ConstrainSize (tmp_win, &dragWidth, &dragHeight);
- AddingX = dragx;
- AddingY = dragy;
+ AddingX = dragx - tmp_win->frame_bw;
+ AddingY = dragy - tmp_win->frame_bw;
AddingW = dragWidth + (2 * tmp_win->frame_bw);
AddingH = dragHeight + (2 * tmp_win->frame_bw);
}