add --smart-titles flag to hide_edge_borders

to hide the title bar on workspaces with one child, fix #7409
This commit is contained in:
Guilhem Saurel 2023-12-29 13:12:56 +01:00
parent 7e69a7076f
commit fa4c1cdc50
7 changed files with 29 additions and 9 deletions

View file

@ -556,6 +556,7 @@ struct sway_config {
enum edge_border_types hide_edge_borders;
enum edge_border_smart_types hide_edge_borders_smart;
bool hide_lone_tab;
bool hide_lone_title;
// border colors
struct {

View file

@ -369,6 +369,8 @@ void view_execute_criteria(struct sway_view *view);
*/
bool view_is_visible(struct sway_view *view);
bool view_is_only_visible(struct sway_view *view);
void view_set_urgent(struct sway_view *view, bool enable);
bool view_is_urgent(struct sway_view *view);