- if (b->action[a] != NULL && b->action[a]->func != NULL) {
- b->action[a]->data.any.c = c;
-
- if (b->action[a]->func == action_moveresize) {
- b->action[a]->data.moveresize.x = x_root;
- b->action[a]->data.moveresize.y = y_root;
- b->action[a]->data.moveresize.button = button;
- if (!(b->action[a]->data.moveresize.corner ==
- prop_atoms.net_wm_moveresize_move ||
- b->action[a]->data.moveresize.corner ==
- prop_atoms.net_wm_moveresize_move_keyboard ||
- b->action[a]->data.moveresize.corner ==
- prop_atoms.net_wm_moveresize_size_keyboard))
- b->action[a]->data.moveresize.corner = corner;
- } else
- g_assert_not_reached();
+ for (it = b->actions[a]; it; it = it->next) {
+ Action *act = it->data;
+ if (act->func != NULL) {
+ act->data.any.c = c;
+
+ if (act->func == action_moveresize) {
+ act->data.moveresize.x = x_root;
+ act->data.moveresize.y = y_root;
+ act->data.moveresize.button = button;
+ if (!(act->data.moveresize.corner ==
+ prop_atoms.net_wm_moveresize_move ||
+ act->data.moveresize.corner ==
+ prop_atoms.net_wm_moveresize_move_keyboard ||
+ act->data.moveresize.corner ==
+ prop_atoms.net_wm_moveresize_size_keyboard))
+ act->data.moveresize.corner = corner;
+ } else
+ g_assert_not_reached();