diff options
author | Drew DeVault <sir@cmpwn.com> | 2016-03-13 21:10:46 -0400 |
---|---|---|
committer | Mikkel Oscar Lyderik <mikkeloscar@gmail.com> | 2016-03-30 00:47:58 +0200 |
commit | b903f7f655479b9ed095cf5b5950d963d525dd8c (patch) | |
tree | fe04ecc99f5ad6ca95ae1b445734e11c33cad114 /include | |
parent | Window borders proof of concept (diff) | |
download | sway-b903f7f655479b9ed095cf5b5950d963d525dd8c.tar.gz sway-b903f7f655479b9ed095cf5b5950d963d525dd8c.tar.zst sway-b903f7f655479b9ed095cf5b5950d963d525dd8c.zip |
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')
-rw-r--r-- | include/container.h | 15 | ||||
-rw-r--r-- | include/render.h | 2 |
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 { | |||
36 | L_LAYOUTS, | 36 | L_LAYOUTS, |
37 | }; | 37 | }; |
38 | 38 | ||
39 | enum swayc_border_types { | ||
40 | B_NONE, /**< No border */ | ||
41 | B_PIXEL, /**< 1px border */ | ||
42 | B_NORMAL /**< Normal border with title bar */ | ||
43 | }; | ||
44 | |||
39 | /** | 45 | /** |
40 | * Stores information about a container. | 46 | * Stores information about a container. |
41 | * | 47 | * |
@@ -109,6 +115,15 @@ struct sway_container { | |||
109 | * If this container's children include a fullscreen view, this is that view. | 115 | * If this container's children include a fullscreen view, this is that view. |
110 | */ | 116 | */ |
111 | struct sway_container *fullscreen; | 117 | struct sway_container *fullscreen; |
118 | /** | ||
119 | * If this container is a view, this may be set to the window's decoration | ||
120 | * buffer (or NULL). | ||
121 | */ | ||
122 | unsigned char *border; | ||
123 | enum swayc_border_types border_type; | ||
124 | struct wlc_geometry border_geometry; | ||
125 | struct wlc_geometry presumed_geometry; | ||
126 | int border_thickness; | ||
112 | }; | 127 | }; |
113 | 128 | ||
114 | enum visibility_mask { | 129 | 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 @@ | |||
1 | #ifndef _SWAY_RENDER_H | 1 | #ifndef _SWAY_RENDER_H |
2 | #define _SWAY_RENDER_H | 2 | #define _SWAY_RENDER_H |
3 | #include <wlc/wlc.h> | 3 | #include <wlc/wlc.h> |
4 | #include "container.h" | ||
4 | 5 | ||
5 | void render_view_borders(wlc_handle view); | 6 | void render_view_borders(wlc_handle view); |
7 | void update_view_border(swayc_t *view); | ||
6 | 8 | ||
7 | #endif | 9 | #endif |