X-Git-Url: https://git.brokenzipper.com/gitweb?a=blobdiff_plain;f=openbox%2Fmoveresize.c;h=0abb8e8d5a8d53fbda25ec1122653b464bfabc28;hb=261d3193c5258126fda8234a3305180066f0f939;hp=c0962fff30f5a6d21c050d857347cf44b2a1cdf5;hpb=b2a0df8e89b3f4bbedd8c648778042e079a1cb13;p=chaz%2Fopenbox 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;