diff options
Diffstat (limited to 'src/clickety.c')
-rw-r--r-- | src/clickety.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/clickety.c b/src/clickety.c index fc2f6d3..b7495c8 100644 --- a/src/clickety.c +++ b/src/clickety.c @@ -4,7 +4,7 @@ * Copyright (C) 2012-2018 Vito Caputo - <vcaputo@pengaru.com> * * This program is free software: you can redistribute it and/or modify it - * under the terms of the GNU General Public License version 3 as published + * under the terms of the GNU General Public License version 2 as published * by the Free Software Foundation. * * This program is distributed in the hope that it will be useful, @@ -74,19 +74,19 @@ static void compute_resize(XEvent *terminus, XWindowAttributes *new) xdelta = xdelta / width_inc * width_inc; ydelta = ydelta / height_inc * height_inc; - if (clickety.impetus_x < dw && clickety.impetus_y < dh) { + if (clickety.impetus_x <= dw && clickety.impetus_y <= dh) { /* grabbed top left */ new->x = clickety.orig.x + xdelta; new->y = clickety.orig.y + ydelta; new->width = clickety.orig.width - xdelta; new->height = clickety.orig.height - ydelta; - } else if (clickety.impetus_x > dw && clickety.impetus_y < dh) { + } else if (clickety.impetus_x > dw && clickety.impetus_y <= dh) { /* grabbed top right */ new->x = clickety.orig.x; new->y = clickety.orig.y + ydelta; new->width = clickety.orig.width + xdelta; new->height = clickety.orig.height - ydelta; - } else if (clickety.impetus_x < dw && clickety.impetus_y > dh) { + } else if (clickety.impetus_x <= dw && clickety.impetus_y > dh) { /* grabbed bottom left */ new->x = clickety.orig.x + xdelta; new->y = clickety.orig.y; |