From c07871d4eeeb6e77f37a8c91d8bce26c9915450a Mon Sep 17 00:00:00 2001 From: stefan schippers Date: Sun, 3 Mar 2024 02:24:38 +0100 Subject: [PATCH] fix position of if(waves_selected(event, key, state, button)) in callback ButtonRelease --- src/callback.c | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/src/callback.c b/src/callback.c index 13550cca..8d5dc484 100644 --- a/src/callback.c +++ b/src/callback.c @@ -3280,6 +3280,11 @@ int rstate; /* (reduced state, without ShiftMask) */ break; case ButtonRelease: + if(waves_selected(event, key, state, button)) { + waves_callback(event, mx, my, key, button, aux, state); + break; + } + /* if a polygon/bezier control point was clicked, end point move operation * and set polygon state back to SELECTED from SELECTED1 */ if(xctx->drag_elements) { @@ -3301,10 +3306,6 @@ int rstate; /* (reduced state, without ShiftMask) */ } } - if(waves_selected(event, key, state, button)) { - waves_callback(event, mx, my, key, button, aux, state); - break; - } if(xctx->ui_state & STARTPAN) { xctx->ui_state &=~STARTPAN; /* xctx->mx_save = mx; xctx->my_save = my; */