end the other action when starting a new interactive action while one was in place
This commit is contained in:
parent
8146cdb6ee
commit
ecdf24a5db
1 changed files with 12 additions and 0 deletions
|
@ -120,6 +120,18 @@ void keyboard_interactive_grab(guint state, ObClient *client,
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
interactive_grab = TRUE;
|
interactive_grab = TRUE;
|
||||||
|
} else if (action != grabbed_action) {
|
||||||
|
/* finish it */
|
||||||
|
if (grabbed_action->func == action_cycle_windows) {
|
||||||
|
grabbed_action->data.cycle.final = TRUE;
|
||||||
|
}
|
||||||
|
if (grabbed_action->func == action_desktop_dir) {
|
||||||
|
grabbed_action->data.desktopdir.final = TRUE;
|
||||||
|
}
|
||||||
|
if (grabbed_action->func == action_send_to_desktop_dir) {
|
||||||
|
grabbed_action->data.sendtodir.final = TRUE;
|
||||||
|
}
|
||||||
|
grabbed_action->func(&grabbed_action->data);
|
||||||
}
|
}
|
||||||
|
|
||||||
grabbed_state = state;
|
grabbed_state = state;
|
||||||
|
|
Loading…
Reference in a new issue