]> Dogcows Code - chaz/openbox/commitdiff
add the 'raiselower' action for raising obscured windows and lowering fully visible...
authorDana Jansens <danakj@orodu.net>
Wed, 20 Aug 2003 23:02:26 +0000 (23:02 +0000)
committerDana Jansens <danakj@orodu.net>
Wed, 20 Aug 2003 23:02:26 +0000 (23:02 +0000)
openbox/action.c
openbox/action.h

index 01176294ac2275faadec53949400b1b8ec38562a..4e3b83ba9cec36724437b106bffd4ac79f48f964 100644 (file)
@@ -334,6 +334,11 @@ ActionString actionstrings[] =
         action_iconify,
         NULL
     },
+    {
+        "raiselower",
+        action_raiselower,
+        NULL
+    },
     {
         "raise",
         action_raise,
@@ -767,6 +772,16 @@ void action_iconify(union ActionData *data)
         client_iconify(data->client.c, TRUE, TRUE);
 }
 
+void action_raiselower(union ActionData *data)
+{
+    if (data->client.c) {
+        if (data->client.c->frame->obscured)
+            stacking_raise(CLIENT_AS_WINDOW(data->client.c));
+        else
+            stacking_lower(CLIENT_AS_WINDOW(data->client.c));
+    }
+}
+
 void action_raise(union ActionData *data)
 {
     if (data->client.c)
index f84217e31dfb2d498d25146377cebc7e6e05eda8..64bb99deeabe3a7469d1cc8adb908fce5d394f5e 100644 (file)
@@ -150,6 +150,8 @@ void action_unfocus(union ActionData *data);
 /* ClientAction */
 void action_iconify(union ActionData *data);
 /* ClientAction */
+void action_raiselower(union ActionData *data);
+/* ClientAction */
 void action_raise(union ActionData *data);
 /* ClientAction */
 void action_lower(union ActionData *data);
This page took 0.025095 seconds and 4 git commands to generate.