From ce97f582f12636d9ccd235548a7a52ea6bd4dca8 Mon Sep 17 00:00:00 2001 From: Michael Gernoth Date: Sun, 27 Jan 2008 20:12:58 +0100 Subject: [PATCH 1/1] Optimize redrawing so that the mouse is more responsive, from Marc Espie. Fixes sluggish mouse behavior. Forwarded by Deanna Phillips. --- src/sim/w_tk.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/sim/w_tk.c b/src/sim/w_tk.c index ceed33a..027654d 100644 --- a/src/sim/w_tk.c +++ b/src/sim/w_tk.c @@ -475,8 +475,8 @@ TileViewEventProc(ClientData clientData, XEvent *eventPtr) /* XXX: redraw all views showing cursor */ /* XXX: also, make sure switching tools works w/out moving */ if (((view->tool_showing != last_showing) || - (view->tool_x != last_x) || - (view->tool_y != last_y))) { + ((view->tool_x >> 4) != (last_x >> 4)) || + ((view->tool_y >> 4) != (last_y >> 4)))) { #if 1 EventuallyRedrawView(view); #else -- 2.39.5