diff options
author | Leonardo Hernández Hernández <leohdz172@proton.me> | 2023-10-05 22:20:08 -0600 |
---|---|---|
committer | Leonardo Hernández Hernández <leohdz172@proton.me> | 2023-10-09 11:05:41 -0600 |
commit | a18c52830010675cc794984c86db6c39776f914a (patch) | |
tree | 8126cb13a7ea24007d9737e86ba2441c0f0cccc4 /client.h | |
parent | 72a7d78a1a7926a207539eb50f44b2e1eb089d49 (diff) |
simplify setting the border color of clients
Diffstat (limited to 'client.h')
-rw-r--r-- | client.h | 8 |
1 files changed, 8 insertions, 0 deletions
@@ -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 |