aboutsummaryrefslogtreecommitdiffstats
path: root/include/sway/tree/container.h
diff options
context:
space:
mode:
authorLibravatar Ryan Dwyer <ryandwyer1@gmail.com>2018-05-05 12:36:50 +1000
committerLibravatar Ryan Dwyer <ryandwyer1@gmail.com>2018-05-05 22:29:37 +1000
commit228c478e8d11dd14972b237574146fd0d2d6b96c (patch)
tree819dfc4d6151ebb28d7db5b862d0ac4314d82fc3 /include/sway/tree/container.h
parentMerge pull request #1918 from RyanDwyer/title-scissor (diff)
downloadsway-228c478e8d11dd14972b237574146fd0d2d6b96c.tar.gz
sway-228c478e8d11dd14972b237574146fd0d2d6b96c.tar.zst
sway-228c478e8d11dd14972b237574146fd0d2d6b96c.zip
Implement title_format
This implements the title_format command, with a new placeholder %shell which gets substituted with the view type (xwayland, xdg_shell_v6 or wl_shell). Example config: for_window [title=".*"] title_format %title (class=%class instance=%instance shell=%shell)
Diffstat (limited to 'include/sway/tree/container.h')
-rw-r--r--include/sway/tree/container.h6
1 files changed, 3 insertions, 3 deletions
diff --git a/include/sway/tree/container.h b/include/sway/tree/container.h
index b07af72c..61ab7ca1 100644
--- a/include/sway/tree/container.h
+++ b/include/sway/tree/container.h
@@ -63,7 +63,8 @@ struct sway_container {
63 */ 63 */
64 size_t id; 64 size_t id;
65 65
66 char *name; 66 char *name; // The view's title (unformatted)
67 char *formatted_title; // The title displayed in the title bar
67 68
68 enum sway_container_type type; 69 enum sway_container_type type;
69 enum sway_container_layout layout; 70 enum sway_container_layout layout;
@@ -204,7 +205,6 @@ void container_update_title_textures(struct sway_container *container);
204 */ 205 */
205void container_calculate_title_height(struct sway_container *container); 206void container_calculate_title_height(struct sway_container *container);
206 207
207void container_update_title(struct sway_container *container, 208void container_notify_child_title_changed(struct sway_container *container);
208 const char *new_title);
209 209
210#endif 210#endif