diff options
| author | Dana Jansens <danakj@orodu.net> | 2003-09-02 07:56:40 +0000 |
|---|---|---|
| committer | Dana Jansens <danakj@orodu.net> | 2003-09-02 07:56:40 +0000 |
| commit | 8420e47848ba2c521929d2d7be5d58d59d0b209c (patch) | |
| tree | 39fe7d5b48ec04878367ef1e0ba6e842122e9f70 | |
| parent | 78dfba0195c7e930b0b327afc9bf0bea4c8c0f35 (diff) | |
add comment about the new code in moveresize for size increment windows
| -rw-r--r-- | openbox/moveresize.c | 5 |
1 files changed, 5 insertions, 0 deletions
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; |
