From 4d3af62ee1eabea4aadbcfeec8c69b46ec950c3d Mon Sep 17 00:00:00 2001 From: stefan schippers Date: Wed, 6 Mar 2024 13:02:53 +0100 Subject: [PATCH] intuitive_interface: if clicking without shift all other selected objects will be unselected --- src/callback.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/callback.c b/src/callback.c index 7b3caaca..b9148f0d 100644 --- a/src/callback.c +++ b/src/callback.c @@ -3394,7 +3394,6 @@ int rstate; /* (reduced state, without ShiftMask) */ if(!xctx->intuitive_interface && no_shift_no_ctrl ) unselect_all(1); sel = find_closest_obj(xctx->mousex, xctx->mousey, 0); - if(xctx->intuitive_interface && /* !sel.type && */ no_shift_no_ctrl ) unselect_all(1); switch(sel.type) { @@ -3408,6 +3407,8 @@ int rstate; /* (reduced state, without ShiftMask) */ default: break; } /*end switch */ + if(xctx->intuitive_interface && !already_selected && no_shift_no_ctrl ) unselect_all(1); + if(!already_selected) select_object(xctx->mousex, xctx->mousey, SELECTED, 0, &sel); rebuild_selected_array();