summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDana Jansens <danakj@orodu.net>2003-03-28 22:59:26 +0000
committerDana Jansens <danakj@orodu.net>2003-03-28 22:59:26 +0000
commit8fb10d8d8705b37cacbcada71821fbf5dc750eb9 (patch)
treee94609e81214e261435f21bcbcd8828605339018
parent3e8ecbeefaacda2b31bb46e8de58ef743dfaaee4 (diff)
add client_disable_decorations
-rw-r--r--openbox/client.c6
-rw-r--r--openbox/client.h6
2 files changed, 12 insertions, 0 deletions
diff --git a/openbox/client.c b/openbox/client.c
index 95d1e97e..e7d77df9 100644
--- a/openbox/client.c
+++ b/openbox/client.c
@@ -2023,3 +2023,9 @@ 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 1b9ee9bc..6df13cb6 100644
--- a/openbox/client.h
+++ b/openbox/client.h
@@ -445,6 +445,12 @@ 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.