- if ((e->type == KeyRelease &&
- !(grabbed_state & e->xkey.state)))
- done = TRUE;
- else if (e->type == KeyPress) {
- if (e->xkey.keycode == ob_keycode(OB_KEY_RETURN))
- done = TRUE;
- else if (e->xkey.keycode == ob_keycode(OB_KEY_ESCAPE)) {
- if (grabbed_action->func == action_cycle_windows) {
- grabbed_action->data.cycle.cancel = TRUE;
- }
- if (grabbed_action->func == action_desktop_dir) {
- grabbed_action->data.desktopdir.cancel = TRUE;
- }
- if (grabbed_action->func == action_send_to_desktop_dir)
- {
- grabbed_action->data.sendtodir.cancel = TRUE;
- }
+ next = g_slist_next(it);
+
+ *client = s->client;
+ *context = s->context;
+
+ if ((e->type == KeyRelease &&
+ !(s->state & e->xkey.state)))