This commit is contained in:
Kenny Levinsen 2026-01-31 08:21:06 +05:30 committed by GitHub
commit 5b59feec2a
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
11 changed files with 178 additions and 1 deletions

View file

@ -124,6 +124,8 @@ sway_cmd cmd_commands;
sway_cmd cmd_create_output;
sway_cmd cmd_default_border;
sway_cmd cmd_default_floating_border;
sway_cmd cmd_default_stacking_titlebar;
sway_cmd cmd_default_tabbed_titlebar;
sway_cmd cmd_default_orientation;
sway_cmd cmd_exec;
sway_cmd cmd_exec_always;
@ -181,10 +183,12 @@ sway_cmd cmd_split;
sway_cmd cmd_splith;
sway_cmd cmd_splitt;
sway_cmd cmd_splitv;
sway_cmd cmd_stacking_titlebar;
sway_cmd cmd_sticky;
sway_cmd cmd_swaybg_command;
sway_cmd cmd_swaynag_command;
sway_cmd cmd_swap;
sway_cmd cmd_tabbed_titlebar;
sway_cmd cmd_tiling_drag;
sway_cmd cmd_tiling_drag_threshold;
sway_cmd cmd_title_align;

View file

@ -583,6 +583,9 @@ struct sway_config {
bool has_focused_tab_title;
bool stacking_titlebar_follows_border;
bool tabbed_titlebar_follows_border;
// floating view
int32_t floating_maximum_width;
int32_t floating_maximum_height;

View file

@ -60,6 +60,9 @@ struct sway_container_state {
bool border_left;
bool border_right;
bool stacking_titlebar_follows_border;
bool tabbed_titlebar_follows_border;
// These are in layout coordinates.
double content_x, content_y;
double content_width, content_height;
@ -222,6 +225,13 @@ void container_set_geometry_from_content(struct sway_container *con);
*/
bool container_is_floating(struct sway_container *container);
/**
* Determine if the given container should have a titlebar.
*
* Uses pending container state.
*/
bool container_has_titlebar(struct sway_container *container);
/**
* Get a container's box in layout coordinates.
*/