aboutsummaryrefslogtreecommitdiff
path: root/include/container.h
diff options
context:
space:
mode:
authorDrew DeVault <sir@cmpwn.com>2016-03-30 07:41:13 -0400
committerDrew DeVault <sir@cmpwn.com>2016-03-30 07:41:13 -0400
commit4bf10d77713f5ea9fdc05c084a26a5eb1d5bc3c5 (patch)
treeac04166d4e75b4cf7617705e31214f73f2398655 /include/container.h
parent3ffff5e4f246fd444b8059820825df42e627fef1 (diff)
parent0af55539a8afe38fa1a1beb6af15b0891030985a (diff)
downloadsway-4bf10d77713f5ea9fdc05c084a26a5eb1d5bc3c5.tar.xz
Merge pull request #551 from mikkeloscar/window-borders
Implement Window borders
Diffstat (limited to 'include/container.h')
-rw-r--r--include/container.h18
1 files changed, 17 insertions, 1 deletions
diff --git a/include/container.h b/include/container.h
index a96beab9..26da851e 100644
--- a/include/container.h
+++ b/include/container.h
@@ -8,7 +8,7 @@ typedef struct sway_container swayc_t;
/**
* Different kinds of containers.
- *
+ *
* This enum is in order. A container will never be inside of a container below
* it on this list.
*/
@@ -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,16 @@ 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 title_bar_geometry;
+ struct wlc_geometry actual_geometry;
+ int border_thickness;
};
enum visibility_mask {