X-Git-Url: https://git.dogcows.com/gitweb?a=blobdiff_plain;f=openbox%2Fmoveresize.c;h=0abb8e8d5a8d53fbda25ec1122653b464bfabc28;hb=e68e6c6a536a2132570ddf1d1d3759bb31ef781e;hp=8928a995d75d7bb55935e2e71e33dca204f3073e;hpb=15450dc799a581bcefb9a6ad51b575cf46b647c5;p=chaz%2Fopenbox diff --git a/openbox/moveresize.c b/openbox/moveresize.c index 8928a995..0abb8e8d 100644 --- a/openbox/moveresize.c +++ b/openbox/moveresize.c @@ -71,6 +71,9 @@ void moveresize_start(ObClient *c, int x, int y, guint b, guint32 cnr) g_assert(!moveresize_in_progress); + if (!c->frame->visible) + return; + moveresize_client = c; start_cx = c->frame->area.x; start_cy = c->frame->area.y; @@ -79,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;