]> Dogcows Code - chaz/openbox/commitdiff
rm client_disable_decorations.. it already had an action.
authorDana Jansens <danakj@orodu.net>
Fri, 28 Mar 2003 23:02:57 +0000 (23:02 +0000)
committerDana Jansens <danakj@orodu.net>
Fri, 28 Mar 2003 23:02:57 +0000 (23:02 +0000)
add the action to the action_from_string func

openbox/action.c
openbox/client.c
openbox/client.h

index 6eb06298f7cec4dc8c99166f0ed673ba2ad33cea..ccb988d970f8399db0b603cd9a472a4f4ec3dbd5 100644 (file)
@@ -140,6 +140,8 @@ Action *action_from_string(char *name)
     } else if (!g_ascii_strcasecmp(name, "previousdesktoprowwrap")) {
         a = action_new(action_previous_desktop_row);
         a->data.nextprevdesktop.wrap = TRUE;
+    } else if (!g_ascii_strcasecmp(name, "toggledecorations")) {
+        a = action_new(action_toggle_decorations);
     } else if (!g_ascii_strcasecmp(name, "move")) {
         a = action_new(action_move);
     } else if (!g_ascii_strcasecmp(name, "resize")) {
index e7d77df9cea3bbe3a2a3f9bceef2ad19de544e59..95d1e97e1539613eb1c7b4c19a33017fac88fa2d 100644 (file)
@@ -2023,9 +2023,3 @@ Icon *client_icon(Client *self, int w, int h)
         return &self->icons[si];
     return &self->icons[li];
 }
-
-void client_disable_decorations(Client *self, int flags)
-{
-    self->disabled_decorations = flags;
-    client_setup_decor_and_functions(self);
-}
index 6df13cb687b08de8fea89180210977f1f4939d6e..1b9ee9bca9b3cc1c20d284ba6c81b3f51bddf37e 100644 (file)
@@ -445,12 +445,6 @@ void client_update_icons(Client *self);
 /*! Updates the window's kwm icon */
 void client_update_kwm_icon(Client *self);
 
-/* Disable decorations on the client.
-   @param flags A mask of Decoration enum values which will be disabled on the
-                client if they would normally have been displayed.
-*/
-void client_disable_decorations(Client *self, int flags);
-
 /*! Set up what decor should be shown on the window and what functions should
   be allowed (Client::decorations and Client::functions).
   This also updates the NET_WM_ALLOWED_ACTIONS hint.
This page took 0.032179 seconds and 4 git commands to generate.