From a18c52830010675cc794984c86db6c39776f914a Mon Sep 17 00:00:00 2001 From: Leonardo Hernández Hernández Date: Thu, 5 Oct 2023 22:20:08 -0600 Subject: simplify setting the border color of clients --- client.h | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'client.h') diff --git a/client.h b/client.h index 5a45edc..cf1ed85 100644 --- a/client.h +++ b/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) { -- cgit v1.2.3