From c4a95ba1353bdb92de2c50d88a5328b9b9ee425e Mon Sep 17 00:00:00 2001 From: MC Date: Tue, 13 Jul 2010 10:21:08 +0200 Subject: Missed a pixel in height and width when moving with mouse. --- mcwm.c | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'mcwm.c') diff --git a/mcwm.c b/mcwm.c index af55f86..33679c3 100644 --- a/mcwm.c +++ b/mcwm.c @@ -1407,14 +1407,14 @@ void mousemove(xcb_drawable_t win, int rel_x, int rel_y) x = rel_x; y = rel_y; - - if (x < BORDERWIDTH) + + if (x < 0) { - x = BORDERWIDTH; + x = 0; } - if (y < BORDERWIDTH) + if (y < 0) { - y = BORDERWIDTH; + y = 0; } if (y + geom->height + BORDERWIDTH * 2 > screen->height_in_pixels) { -- cgit v1.2.3