diff options
| author | Dana Jansens <danakj@orodu.net> | 2003-09-01 03:42:23 +0000 |
|---|---|---|
| committer | Dana Jansens <danakj@orodu.net> | 2003-09-01 03:42:23 +0000 |
| commit | ed6f5152ebeff016b9fbaadfe71ca722637661ea (patch) | |
| tree | 6606b3fb26a27f3ae9cf55f48afe88a0f065f7f3 | |
| parent | bd70fff6f96f482d309bf67d0eefa39d3a61f027 (diff) | |
remove vibrate and flash actions
| -rw-r--r-- | openbox/action.c | 41 | ||||
| -rw-r--r-- | openbox/action.h | 4 |
2 files changed, 0 insertions, 45 deletions
diff --git a/openbox/action.c b/openbox/action.c index 00e87b24..3b120174 100644 --- a/openbox/action.c +++ b/openbox/action.c @@ -700,16 +700,6 @@ ActionString actionstrings[] = setup_action_growtoedge_east }, { - "vibrate", - action_vibrate, - NULL - }, - { - "flash", - action_flash, - NULL - }, - { NULL, NULL, NULL @@ -1248,34 +1238,3 @@ void action_unshow_desktop(union ActionData *data) { screen_show_desktop(FALSE); } - -void action_vibrate(union ActionData *data) -{ - ObClient *c = data->client.any.c; - gint x, y, thr, length, i; - - if (!c) return; - - x = c->frame->area.x; - y = c->frame->area.y; - thr = 120; - length = y + thr; - for (i = 0; i < 5; ++i) { - while (y < length) { - client_move(c, x, y); - y += 4; - x -= 1; - } - while (y >= length - thr) { - client_move(c, x, y); - y -= 4; - x += 1; - } - } -} - -void action_flash(union ActionData *data) -{ - if (!data->client.any.c) return; - frame_flash(data->client.any.c->frame); -} diff --git a/openbox/action.h b/openbox/action.h index 116bddc0..3f6d84eb 100644 --- a/openbox/action.h +++ b/openbox/action.h @@ -244,9 +244,5 @@ void action_toggle_show_desktop(union ActionData *data); void action_show_desktop(union ActionData *data); /* Any */ void action_unshow_desktop(union ActionData *data); -/* Client */ -void action_vibrate(union ActionData *data); -/* Client */ -void action_flash(union ActionData *data); #endif |
