From aa7572344665c2150e7fde1566893d4251129320 Mon Sep 17 00:00:00 2001 From: stefan schippers Date: Fri, 22 Sep 2023 19:29:14 +0200 Subject: [PATCH] fix MotionNotify events when crosshair is enabled and there is a selection and FIX_BROKEN_TILED_FILL not defined --- src/callback.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/callback.c b/src/callback.c index 1b86740e..fbf6dd89 100644 --- a/src/callback.c +++ b/src/callback.c @@ -1016,8 +1016,8 @@ void draw_crosshair(int del) if(!bbox_set) { bbox(END, 0.0, 0.0, 0.0, 0.0); } - draw_selection(xctx->gc[SELLAYER], 1); #endif + draw_selection(xctx->gc[SELLAYER], 0); drawtempline(xctx->gctiled, NOW, X_TO_XSCHEM(xctx->areax1), xctx->prev_crossy, X_TO_XSCHEM(xctx->areax2), xctx->prev_crossy); drawtempline(xctx->gctiled, NOW, xctx->prev_crossx, Y_TO_XSCHEM(xctx->areay1), @@ -1208,7 +1208,9 @@ int draw_xhair = tclgetboolvar("draw_crosshair"); xctx->xrect[0].width, xctx->xrect[0].height, xctx->xrect[0].x, xctx->xrect[0].y); } #endif - if(draw_xhair) draw_crosshair(0); + if(draw_xhair) { + draw_crosshair(0); + } if(xctx->semaphore >= 2) break; if(xctx->ui_state) { if(abs(mx-xctx->mx_save) > 8 || abs(my-xctx->my_save) > 8 ) {