all repos — openbox @ cb3aaab102035e227c6d64c7b5c319ed3b13cef2

openbox fork - make it a bit more like ryudo

off by one caused clients to be resized a little during a move
Dana Jansens danakj@orodu.net
commit

cb3aaab102035e227c6d64c7b5c319ed3b13cef2

parent

d989e3c541ea14038258447610bea1ca48298568

1 files changed, 2 insertions(+), 2 deletions(-)

jump to
M openbox/moveresize.copenbox/moveresize.c

@@ -82,8 +82,8 @@ friendly. you essentially start the resize in the middle of the

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;