summaryrefslogtreecommitdiff
path: root/mcwm.c
diff options
context:
space:
mode:
authorMC <mc@hack.org>2010-07-13 10:21:08 +0200
committerMC <mc@hack.org>2010-07-13 10:21:08 +0200
commitc4a95ba1353bdb92de2c50d88a5328b9b9ee425e (patch)
tree4539d39a297b1f084ad0185b32bb5e11df5db6af /mcwm.c
parent5e03b5e84d4bb1df6ce93de6677a9bc60beaf6c4 (diff)
downloadmcwm-c4a95ba1353bdb92de2c50d88a5328b9b9ee425e.zip
Missed a pixel in height and width when moving with mouse.
Diffstat (limited to 'mcwm.c')
-rw-r--r--mcwm.c10
1 files changed, 5 insertions, 5 deletions
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)
{