aboutsummaryrefslogtreecommitdiff
path: root/client.h
diff options
context:
space:
mode:
authorLeonardo Hernández Hernández <leohdz172@proton.me>2023-10-05 22:20:08 -0600
committerLeonardo Hernández Hernández <leohdz172@proton.me>2023-10-09 11:05:41 -0600
commita18c52830010675cc794984c86db6c39776f914a (patch)
tree8126cb13a7ea24007d9737e86ba2441c0f0cccc4 /client.h
parent72a7d78a1a7926a207539eb50f44b2e1eb089d49 (diff)
simplify setting the border color of clients
Diffstat (limited to 'client.h')
-rw-r--r--client.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/client.h b/client.h
index 5a45edc..cf1ed85 100644
--- a/client.h
+++ b/client.h
@@ -324,6 +324,14 @@ client_send_close(Client *c)
}
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)
{
#ifdef XWAYLAND