if ((n = parse_find_node("dialog", node->xmlChildrenNode)))
act->data.cycle.dialog = parse_bool(doc, n);
}
+ INTERACTIVE_LIMIT(act, uact);
}
- INTERACTIVE_LIMIT(act, uact);
g_free(actname);
}
return act;
a->data.inter.cancel = cancel;
a->data.inter.final = done;
if (!(cancel || done))
- keyboard_interactive_grab(state, a->data.any.c, a);
+ if (!keyboard_interactive_grab(state, a->data.any.c, a))
+ continue;
/* interactive actions are not queued */
a->func(&a->data);
void action_focus(union ActionData *data)
{
+ /* if using focus_delay, stop the timer now so that focus doesn't go moving
+ on us */
+ event_halt_focus_delay();
+
client_focus(data->client.any.c);
}
static guint32 pick_corner(int x, int y, int cx, int cy, int cw, int ch)
{
- if (x - cx > cw / 3 * 2) {
- if (y - cy > ch / 3 * 2)
+ if ((cw / 3 < 1) || (x - cx > cw / 3 * 2)) {
+ if ((ch / 3 < 1) || (y - cy > ch / 3 * 2))
return prop_atoms.net_wm_moveresize_size_bottomright;
else if (y - cy < ch / 3)
return prop_atoms.net_wm_moveresize_size_topright;
void action_cycle_windows(union ActionData *data)
{
+ /* if using focus_delay, stop the timer now so that focus doesn't go moving
+ on us */
+ event_halt_focus_delay();
+
focus_cycle(data->cycle.forward, data->cycle.linear,
data->cycle.dialog,
data->cycle.inter.final, data->cycle.inter.cancel);
void action_directional_focus(union ActionData *data)
{
+ /* if using focus_delay, stop the timer now so that focus doesn't go moving
+ on us */
+ event_halt_focus_delay();
+
focus_directional_cycle(data->interdiraction.direction,
data->interdiraction.dialog,
data->interdiraction.inter.final,