add comment about the new code in moveresize for size increment windows
authorDana Jansens <danakj@orodu.net>
Tue, 2 Sep 2003 07:56:40 +0000 (07:56 +0000)
committerDana Jansens <danakj@orodu.net>
Tue, 2 Sep 2003 07:56:40 +0000 (07:56 +0000)
openbox/moveresize.c

index ccc5fd0..b9a3309 100644 (file)
@@ -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;