diff options
author | MC <mc@hack.org> | 2010-07-13 10:21:08 +0200 |
---|---|---|
committer | MC <mc@hack.org> | 2010-07-13 10:21:08 +0200 |
commit | c4a95ba1353bdb92de2c50d88a5328b9b9ee425e (patch) | |
tree | 4539d39a297b1f084ad0185b32bb5e11df5db6af /mcwm.c | |
parent | 5e03b5e84d4bb1df6ce93de6677a9bc60beaf6c4 (diff) | |
download | mcwm-c4a95ba1353bdb92de2c50d88a5328b9b9ee425e.zip |
Missed a pixel in height and width when moving with mouse.
Diffstat (limited to 'mcwm.c')
-rw-r--r-- | mcwm.c | 10 |
1 files changed, 5 insertions, 5 deletions
@@ -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) { |