diff options
-rw-r--r-- | Makefile | 2 | ||||
-rw-r--r-- | mousefunc.c | 4 |
2 files changed, 3 insertions, 3 deletions
diff --git a/Makefile b/Makefile index a90b4b3..cf49c4a 100644 --- a/Makefile +++ b/Makefile @@ -21,7 +21,7 @@ CPPFLAGS+= -I${X11BASE}/include -I${X11BASE}/include/freetype2 -I. CFLAGS+= -Wall -O2 -g -LDADD+= -L${X11BASE}/lib -lXft -lXrender -lX11 -lXau -lXdmcp \ +LDADD+= -L${X11BASE}/lib -lXft -lXrender -lX11 ${LIBXCB} -lXau -lXdmcp \ -lfontconfig -lexpat -lfreetype -lz -lXinerama -lXrandr -lXext MANDIR= ${X11BASE}/man/cat diff --git a/mousefunc.c b/mousefunc.c index 75e28cc..5c14062 100644 --- a/mousefunc.c +++ b/mousefunc.c @@ -157,8 +157,8 @@ mousefunc_window_move(struct client_ctx *cc, void *arg) client_draw_border(cc); break; case MotionNotify: - cc->geom.x = ev.xmotion.x_root - px; - cc->geom.y = ev.xmotion.y_root - py; + cc->geom.x = ev.xmotion.x_root - px - cc->bwidth; + cc->geom.y = ev.xmotion.y_root - py - cc->bwidth; /* don't sync more than 60 times / second */ if ((ev.xmotion.time - time) > (1000 / 60)) { |