diff options
author | Ryan Dwyer <ryandwyer1@gmail.com> | 2018-05-02 23:07:52 +1000 |
---|---|---|
committer | Ryan Dwyer <ryandwyer1@gmail.com> | 2018-05-03 15:12:00 +1000 |
commit | b667298a0a1efead7949715a31ec86fe3b8b1cda (patch) | |
tree | bc658e3019d741f1f245350003b156d05cc354a2 /include | |
parent | Merge pull request #1893 from swaywm/touch (diff) | |
download | sway-b667298a0a1efead7949715a31ec86fe3b8b1cda.tar.gz sway-b667298a0a1efead7949715a31ec86fe3b8b1cda.tar.zst sway-b667298a0a1efead7949715a31ec86fe3b8b1cda.zip |
Render titles
Diffstat (limited to 'include')
-rw-r--r-- | include/sway/config.h | 4 | ||||
-rw-r--r-- | include/sway/tree/container.h | 7 |
2 files changed, 10 insertions, 1 deletions
diff --git a/include/sway/config.h b/include/sway/config.h index a0113e98..02ae3b63 100644 --- a/include/sway/config.h +++ b/include/sway/config.h | |||
@@ -206,7 +206,7 @@ struct bar_config { | |||
206 | struct border_colors { | 206 | struct border_colors { |
207 | float border[4]; | 207 | float border[4]; |
208 | float background[4]; | 208 | float background[4]; |
209 | float text[4]; | 209 | uint32_t text; /**< uint32_t because that's the format that cairo uses */ |
210 | float indicator[4]; | 210 | float indicator[4]; |
211 | float child_border[4]; | 211 | float child_border[4]; |
212 | }; | 212 | }; |
@@ -461,6 +461,8 @@ struct bar_config *default_bar_config(void); | |||
461 | 461 | ||
462 | void free_bar_config(struct bar_config *bar); | 462 | void free_bar_config(struct bar_config *bar); |
463 | 463 | ||
464 | int get_font_text_height(char *font); | ||
465 | |||
464 | /* Global config singleton. */ | 466 | /* Global config singleton. */ |
465 | extern struct sway_config *config; | 467 | extern struct sway_config *config; |
466 | 468 | ||
diff --git a/include/sway/tree/container.h b/include/sway/tree/container.h index d092af49..b508f310 100644 --- a/include/sway/tree/container.h +++ b/include/sway/tree/container.h | |||
@@ -85,6 +85,11 @@ struct sway_container { | |||
85 | 85 | ||
86 | float alpha; | 86 | float alpha; |
87 | 87 | ||
88 | struct wlr_texture *title_focused; | ||
89 | struct wlr_texture *title_focused_inactive; | ||
90 | struct wlr_texture *title_unfocused; | ||
91 | struct wlr_texture *title_urgent; | ||
92 | |||
88 | struct { | 93 | struct { |
89 | struct wl_signal destroy; | 94 | struct wl_signal destroy; |
90 | // Raised after the tree updates, but before arrange_windows | 95 | // Raised after the tree updates, but before arrange_windows |
@@ -191,4 +196,6 @@ struct sway_container *container_reap_empty_recursive( | |||
191 | 196 | ||
192 | struct sway_container *container_flatten(struct sway_container *container); | 197 | struct sway_container *container_flatten(struct sway_container *container); |
193 | 198 | ||
199 | void container_update_title_textures(struct sway_container *container); | ||
200 | |||
194 | #endif | 201 | #endif |