diff options
author | Drew DeVault <[email protected]> | 2016-03-13 21:10:46 -0400 |
---|---|---|
committer | Mikkel Oscar Lyderik <[email protected]> | 2016-03-30 00:47:58 +0200 |
commit | b903f7f655479b9ed095cf5b5950d963d525dd8c (patch) | |
tree | fe04ecc99f5ad6ca95ae1b445734e11c33cad114 /include/container.h | |
parent | a8e084433d57609398fd1b72b72d3d7e71925d44 (diff) |
Implement some more on borders
Note that this segfaults ALL THE TIME in wlc code. Paging @Cloudef for
help, I'm at a loss.
Diffstat (limited to 'include/container.h')
-rw-r--r-- | include/container.h | 15 |
1 files changed, 15 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 { |