X-Git-Url: https://git.dogcows.com/gitweb?a=blobdiff_plain;ds=sidebyside;f=openbox%2Fmoveresize.c;h=b9a3309ef828edc88d7700a1f3d71d95bf33af2c;hb=3b2b0998fccb395f0ed83230ac640d9fec315151;hp=ccc5fd0f36f87fba9281ac125a925f55764bb214;hpb=78dfba0195c7e930b0b327afc9bf0bea4c8c0f35;p=chaz%2Fopenbox diff --git a/openbox/moveresize.c b/openbox/moveresize.c index ccc5fd0f..b9a3309e 100644 --- a/openbox/moveresize.c +++ b/openbox/moveresize.c @@ -79,6 +79,11 @@ void moveresize_start(ObClient *c, int x, int y, guint b, guint32 cnr) moveresize_client = c; start_cx = c->frame->area.x; start_cy = c->frame->area.y; + /* these adjustments for the size_inc make resizing a terminal more + 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_x = x;