From cb3aaab102035e227c6d64c7b5c319ed3b13cef2 Mon Sep 17 00:00:00 2001 From: Dana Jansens Date: Thu, 4 Sep 2003 06:12:19 +0000 Subject: [PATCH] off by one caused clients to be resized a little during a move --- openbox/moveresize.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/openbox/moveresize.c b/openbox/moveresize.c index c0962fff..0abb8e8d 100644 --- a/openbox/moveresize.c +++ b/openbox/moveresize.c @@ -82,8 +82,8 @@ void moveresize_start(ObClient *c, int x, int y, guint b, guint32 cnr) increment instead of at 0, so you have to move half an increment either way instead of a full increment one and 1 px the other. and this is one large mother fucking comment. */ - start_cw = c->area.width + (c->size_inc.width + 1) / 2; - start_ch = c->area.height + (c->size_inc.height + 1) / 2; + start_cw = c->area.width + c->size_inc.width / 2; + start_ch = c->area.height + c->size_inc.height / 2; start_x = x; start_y = y; corner = cnr; -- 2.44.0