aboutsummaryrefslogtreecommitdiff
path: root/include/border.h
diff options
context:
space:
mode:
authorMikkel Oscar Lyderik <mikkeloscar@gmail.com>2016-04-27 11:22:29 +0200
committerMikkel Oscar Lyderik <mikkeloscar@gmail.com>2016-04-27 11:24:28 +0200
commitddd5b69b998a8f413ad3b7ec5ff4d54221dfc0b6 (patch)
tree8e185c6a180f62ccf3a2fd55164a6b449bbceb1e /include/border.h
parent27066c6328fc80ef573bfb856f6df451cdd4262e (diff)
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.
Diffstat (limited to 'include/border.h')
-rw-r--r--include/border.h8
1 files changed, 8 insertions, 0 deletions
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 <wlc/wlc.h>
#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);