Exemple #1
0
gboolean actions_interactive_input_event(XEvent *e)
{
    gboolean used = FALSE;
    if (interactive_act) {
        if (!interactive_act->i_input(interactive_initial_state, e,
                                      grab_input_context(),
                                      interactive_act->options, &used))
        {
            used = TRUE; /* if it cancelled the action then it has to of
                            been used */
            actions_interactive_end_act();
        }
    }
    return used;
}
Exemple #2
0
ObtIC* menu_frame_ic(ObMenuFrame *self)
{
    /* menus are always used through a grab right now, so they can always use
       the grab input context */
    return grab_input_context();
}