fix ctrl-click in launchers if no intuitive interface is set

This commit is contained in:
stefan schippers 2024-03-20 18:43:25 +01:00
parent cc1a70d340
commit e55c8294c2
1 changed files with 13 additions and 2 deletions

View File

@ -3693,8 +3693,19 @@ int rstate; /* (reduced state, without ShiftMask) */
waves_callback(event, mx, my, key, button, aux, state);
break;
}
/* launcher, only if no movement has been done */
if(state == (Button1Mask | ControlMask) && !xctx->shape_point_selected && (xctx->ui_state & STARTMOVE) &&
/* launcher, no intuitive interface */
if(!xctx->intuitive_interface && state == (Button1Mask | ControlMask)) {
int savesem = xctx->semaphore;
xctx->semaphore = 0;
launcher(); /* works only if lastsel == 1 */
xctx->semaphore = savesem;
}
/* launcher, intuitive_interface, only if no movement has been done */
else if(xctx->intuitive_interface && state == (Button1Mask | ControlMask) &&
!xctx->shape_point_selected && (xctx->ui_state & STARTMOVE) &&
xctx->deltax == 0 && xctx->deltay == 0) {
int savesem = xctx->semaphore;
move_objects(ABORT,0,0,0);