From ddd5b69b998a8f413ad3b7ec5ff4d54221dfc0b6 Mon Sep 17 00:00:00 2001 From: Mikkel Oscar Lyderik Date: Wed, 27 Apr 2016 11:22:29 +0200 Subject: border: clear buffer on fullscreen views This patch makes sure to clear the border buffer of fullscreen view so the border doesn't get drawn behind a fullscreen view, which would be visible if the view was transparent. --- include/border.h | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'include/border.h') diff --git a/include/border.h b/include/border.h index c99c02ea..eb7fc656 100644 --- a/include/border.h +++ b/include/border.h @@ -3,11 +3,19 @@ #include #include "container.h" +/** + * Border pixel buffer and corresponding geometry. + */ struct border { unsigned char *buffer; struct wlc_geometry geometry; }; +/** + * Clear border buffer. + */ +void border_clear(struct border *border); + void render_view_borders(wlc_handle view); void update_view_border(swayc_t *view); void map_update_view_border(swayc_t *view, void *data); -- cgit v1.2.3