all repos — openbox @ 8fb10d8d8705b37cacbcada71821fbf5dc750eb9

openbox fork - make it a bit more like ryudo

add client_disable_decorations
Dana Jansens danakj@orodu.net
commit

8fb10d8d8705b37cacbcada71821fbf5dc750eb9

parent

3e8ecbeefaacda2b31bb46e8de58ef743dfaaee4

2 files changed, 12 insertions(+), 0 deletions(-)

jump to
M openbox/client.copenbox/client.c

@@ -2023,3 +2023,9 @@ if (largest == 0) /* didnt find one smaller than the requested size */

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); +}
M openbox/client.hopenbox/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.