-
-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;
- }
- }
-}