X-Git-Url: https://git.dogcows.com/gitweb?a=blobdiff_plain;f=openbox%2Faction.c;h=2d3bf6c33b3a5ee411d7efe2802ac9103cbdf98b;hb=3b2b0998fccb395f0ed83230ac640d9fec315151;hp=00e87b24f5ab0f9ad2aa5a79460c67e1032fd53f;hpb=1b0a66dcfff539fe973280f94d4e97f4591c64f8;p=chaz%2Fopenbox diff --git a/openbox/action.c b/openbox/action.c index 00e87b24..2d3bf6c3 100644 --- a/openbox/action.c +++ b/openbox/action.c @@ -699,16 +699,6 @@ ActionString actionstrings[] = action_growtoedge, setup_action_growtoedge_east }, - { - "vibrate", - action_vibrate, - NULL - }, - { - "flash", - action_flash, - NULL - }, { NULL, NULL, @@ -1213,7 +1203,7 @@ void action_growtoedge(union ActionData *data) frame_frame_gravity(c->frame, &x, &y); width -= c->frame->size.left + c->frame->size.right; height -= c->frame->size.top + c->frame->size.bottom; - client_move(c, x, y); + client_move_resize(c, x, y, width, height); } void action_send_to_layer(union ActionData *data) @@ -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); -}