aboutsummaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
Diffstat (limited to 'include')
-rw-r--r--include/container.h15
-rw-r--r--include/render.h2
2 files changed, 17 insertions, 0 deletions
diff --git a/include/container.h b/include/container.h
index a96beab9..815898d7 100644
--- a/include/container.h
+++ b/include/container.h
@@ -36,6 +36,12 @@ enum swayc_layouts {
L_LAYOUTS,
};
+enum swayc_border_types {
+ B_NONE, /**< No border */
+ B_PIXEL, /**< 1px border */
+ B_NORMAL /**< Normal border with title bar */
+};
+
/**
* Stores information about a container.
*
@@ -109,6 +115,15 @@ struct sway_container {
* If this container's children include a fullscreen view, this is that view.
*/
struct sway_container *fullscreen;
+ /**
+ * If this container is a view, this may be set to the window's decoration
+ * buffer (or NULL).
+ */
+ unsigned char *border;
+ enum swayc_border_types border_type;
+ struct wlc_geometry border_geometry;
+ struct wlc_geometry presumed_geometry;
+ int border_thickness;
};
enum visibility_mask {
diff --git a/include/render.h b/include/render.h
index 19d3a52e..c3d1ca87 100644
--- a/include/render.h
+++ b/include/render.h
@@ -1,7 +1,9 @@
#ifndef _SWAY_RENDER_H
#define _SWAY_RENDER_H
#include <wlc/wlc.h>
+#include "container.h"
void render_view_borders(wlc_handle view);
+void update_view_border(swayc_t *view);
#endif