diff options
author | wochap <gean.marroquin@gmail.com> | 2024-06-04 16:02:25 -0500 |
---|---|---|
committer | Squibid <me@zacharyscheiman.com> | 2025-02-20 11:45:52 -0600 |
commit | 400767dae1316df25fd8b140a40c24cf942f2535 (patch) | |
tree | ad63bc2fedc62bf0d7c75e7f77783e39c87363c9 /client.h | |
parent | 667fe80afccb94135d255cda26ed8f1c140de474 (diff) | |
download | dwl-400767dae1316df25fd8b140a40c24cf942f2535.tar.gz dwl-400767dae1316df25fd8b140a40c24cf942f2535.tar.bz2 dwl-400767dae1316df25fd8b140a40c24cf942f2535.zip |
implement borders patch
tihs patch adds 2 extra borders relative to the client, they don't
change the size of the client
Diffstat (limited to '')
-rw-r--r-- | client.h | 17 |
1 files changed, 14 insertions, 3 deletions
@@ -326,7 +326,7 @@ client_send_close(Client *c) } static inline void -client_set_border_color(Client *c, const float color[static 4]) +client_set_border_color(Client *c, const float color[static 4], const float colors[static 4], const float colore[static 4]) { int i; @@ -345,8 +345,19 @@ client_set_border_color(Client *c, const float color[static 4]) } else color = color; - for (i = 0; i < 4; i++) - wlr_scene_rect_set_color(c->border[i], color); + + for (i = 0; i < 4; i++) { + if (border_color_type == BrdOriginal) { + wlr_scene_rect_set_color(c->border[i], color); + } else if (border_color_type == BrdStart) { + wlr_scene_rect_set_color(c->borders[i], colors); + } else if (border_color_type == BrdEnd) { + wlr_scene_rect_set_color(c->bordere[i], colore); + } else if (border_color_type == BrdStartEnd) { + wlr_scene_rect_set_color(c->borders[i], colors); + wlr_scene_rect_set_color(c->bordere[i], colore); + } + } } static inline void |