aboutsummaryrefslogtreecommitdiff
path: root/include/sway/tree
diff options
context:
space:
mode:
authorDrew DeVault <sir@cmpwn.com>2018-05-03 08:20:27 -0400
committerGitHub <noreply@github.com>2018-05-03 08:20:27 -0400
commit87e65e5c5b95e1b7c58bd1b722c97ebe0db8b477 (patch)
treee3ca897c922da50ec0fd68ed097acf1b7153f61f /include/sway/tree
parentf3d0885524f4f1dc568baf21fcc8e387a316703f (diff)
parent58a033d8163c922eff8577b34523418c2c2ab432 (diff)
downloadsway-87e65e5c5b95e1b7c58bd1b722c97ebe0db8b477.tar.xz
Merge pull request #1895 from RyanDwyer/show-titles
Render titles
Diffstat (limited to 'include/sway/tree')
-rw-r--r--include/sway/tree/container.h16
1 files changed, 16 insertions, 0 deletions
diff --git a/include/sway/tree/container.h b/include/sway/tree/container.h
index d092af49..b07af72c 100644
--- a/include/sway/tree/container.h
+++ b/include/sway/tree/container.h
@@ -85,6 +85,12 @@ struct sway_container {
float alpha;
+ struct wlr_texture *title_focused;
+ struct wlr_texture *title_focused_inactive;
+ struct wlr_texture *title_unfocused;
+ struct wlr_texture *title_urgent;
+ size_t title_height;
+
struct {
struct wl_signal destroy;
// Raised after the tree updates, but before arrange_windows
@@ -191,4 +197,14 @@ struct sway_container *container_reap_empty_recursive(
struct sway_container *container_flatten(struct sway_container *container);
+void container_update_title_textures(struct sway_container *container);
+
+/**
+ * Calculate the container's title_height property.
+ */
+void container_calculate_title_height(struct sway_container *container);
+
+void container_update_title(struct sway_container *container,
+ const char *new_title);
+
#endif