add client_disable_decorations
This commit is contained in:
parent
3e8ecbeefa
commit
8fb10d8d87
2 changed files with 12 additions and 0 deletions
|
@ -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);
|
||||
}
|
||||
|
|
|
@ -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.
|
||||
|
|
Loading…
Reference in a new issue