diff options
| author | Dana Jansens <danakj@orodu.net> | 2007-06-22 15:26:12 +0000 |
|---|---|---|
| committer | Dana Jansens <danakj@orodu.net> | 2007-06-22 15:26:12 +0000 |
| commit | 597c9c9321b6f96250da0891be98d41c7ac2c109 (patch) | |
| tree | dfab6cba7c5e8c24cb5b41e9f6edffcc8d826ea2 /openbox/action.c | |
| parent | 1e6c375fdd1d10ba0b019505436069d21c751945 (diff) | |
add moverelative action
Diffstat (limited to 'openbox/action.c')
| -rw-r--r-- | openbox/action.c | 42 |
1 files changed, 0 insertions, 42 deletions
diff --git a/openbox/action.c b/openbox/action.c index 61f346b1..dca4ede4 100644 --- a/openbox/action.c +++ b/openbox/action.c @@ -495,26 +495,11 @@ ActionString actionstrings[] = setup_client_action }, { - "moverelativevert", - action_move_relative_vert, - setup_client_action - }, - { - "resizerelativehorz", - action_resize_relative_horz, - setup_client_action - }, - { "resizerelativevert", action_resize_relative_vert, setup_client_action }, { - "moverelative", - action_move_relative, - setup_client_action - }, - { "resizerelative", action_resize_relative, setup_client_action @@ -762,17 +747,6 @@ ObAction *action_parse(ObParseInst *i, xmlDocPtr doc, xmlNodePtr node, if (parse_attr_string("name", node, &actname)) { if ((act = action_from_string(actname, uact))) { - } else if (act->func == action_move_relative_horz || - act->func == action_move_relative_vert || - act->func == action_resize_relative_horz || - act->func == action_resize_relative_vert) { - if ((n = parse_find_node("delta", node->xmlChildrenNode))) - act->data.relative.deltax = parse_int(doc, n); - } else if (act->func == action_move_relative) { - if ((n = parse_find_node("x", node->xmlChildrenNode))) - act->data.relative.deltax = parse_int(doc, n); - if ((n = parse_find_node("y", node->xmlChildrenNode))) - act->data.relative.deltay = parse_int(doc, n); } else if (act->func == action_resize_relative) { if ((n = parse_find_node("left", node->xmlChildrenNode))) act->data.relative.deltaxl = parse_int(doc, n); @@ -1004,22 +978,6 @@ void action_toggle_omnipresent(union ActionData *data) screen_desktop : DESKTOP_ALL, FALSE, TRUE); } -void action_move_relative_horz(union ActionData *data) -{ - ObClient *c = data->relative.any.c; - client_action_start(data); - client_move(c, c->area.x + data->relative.deltax, c->area.y); - client_action_end(data, FALSE); -} - -void action_move_relative_vert(union ActionData *data) -{ - ObClient *c = data->relative.any.c; - client_action_start(data); - client_move(c, c->area.x, c->area.y + data->relative.deltax); - client_action_end(data, FALSE); -} - void action_resize_relative_horz(union ActionData *data) { ObClient *c = data->relative.any.c; |
