off by one caused clients to be resized a little during a move

This commit is contained in:
Dana Jansens 2003-09-04 06:12:19 +00:00
parent d989e3c541
commit cb3aaab102

View file

@ -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 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 either way instead of a full increment one and 1 px the other. and this
is one large mother fucking comment. */ is one large mother fucking comment. */
start_cw = c->area.width + (c->size_inc.width + 1) / 2; start_cw = c->area.width + c->size_inc.width / 2;
start_ch = c->area.height + (c->size_inc.height + 1) / 2; start_ch = c->area.height + c->size_inc.height / 2;
start_x = x; start_x = x;
start_y = y; start_y = y;
corner = cnr; corner = cnr;