]> Dogcows Code - chaz/openbox/commitdiff
remove vibrate and flash actions
authorDana Jansens <danakj@orodu.net>
Mon, 1 Sep 2003 03:42:23 +0000 (03:42 +0000)
committerDana Jansens <danakj@orodu.net>
Mon, 1 Sep 2003 03:42:23 +0000 (03:42 +0000)
openbox/action.c
openbox/action.h

index 00e87b24f5ab0f9ad2aa5a79460c67e1032fd53f..3b1201747cee809d338989fa1e90a0d71564e262 100644 (file)
@@ -699,16 +699,6 @@ ActionString actionstrings[] =
         action_growtoedge,
         setup_action_growtoedge_east
     },
-    {
-        "vibrate",
-        action_vibrate,
-        NULL
-    },
-    {
-        "flash",
-        action_flash,
-        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);
-}
index 116bddc0f6a5e793704a4ac444ae34844a86b803..3f6d84eb8b6ac7c7124e4e1323020c7f94c8acef 100644 (file)
@@ -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
This page took 0.028153 seconds and 4 git commands to generate.