summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDana Jansens <danakj@orodu.net>2003-03-28 23:02:57 +0000
committerDana Jansens <danakj@orodu.net>2003-03-28 23:02:57 +0000
commit8ac5a60322d1556337fa78036d10dd630e1cd305 (patch)
tree34851aec564708589b8a28e1c2cd1a9b842f3246
parent8fb10d8d8705b37cacbcada71821fbf5dc750eb9 (diff)
rm client_disable_decorations.. it already had an action.
add the action to the action_from_string func
-rw-r--r--openbox/action.c2
-rw-r--r--openbox/client.c6
-rw-r--r--openbox/client.h6
3 files changed, 2 insertions, 12 deletions
diff --git a/openbox/action.c b/openbox/action.c
index 6eb06298..ccb988d9 100644
--- a/openbox/action.c
+++ b/openbox/action.c
@@ -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")) {
diff --git a/openbox/client.c b/openbox/client.c
index e7d77df9..95d1e97e 100644
--- a/openbox/client.c
+++ b/openbox/client.c
@@ -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);
-}
diff --git a/openbox/client.h b/openbox/client.h
index 6df13cb6..1b9ee9bc 100644
--- a/openbox/client.h
+++ b/openbox/client.h
@@ -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.