mirror of
https://codeberg.org/FabricSoul/dwl.git
synced 2025-08-04 04:20:24 -04:00
simplify setting the border color of clients
This commit is contained in:
parent
72a7d78a1a
commit
a18c528300
2 changed files with 13 additions and 13 deletions
8
client.h
8
client.h
|
@ -323,6 +323,14 @@ client_send_close(Client *c)
|
|||
wlr_xdg_toplevel_send_close(c->surface.xdg->toplevel);
|
||||
}
|
||||
|
||||
static inline void
|
||||
client_set_border_color(Client *c, const float color[static 4])
|
||||
{
|
||||
int i;
|
||||
for (i = 0; i < 4; i++)
|
||||
wlr_scene_rect_set_color(c->border[i], color);
|
||||
}
|
||||
|
||||
static inline void
|
||||
client_set_fullscreen(Client *c, int fullscreen)
|
||||
{
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue