mirror of
https://github.com/swaywm/sway.git
synced 2026-05-04 06:46:25 -04:00
Merge 76938c3fdd into 3bab37858a
This commit is contained in:
commit
c182805755
11 changed files with 155 additions and 39 deletions
|
|
@ -34,7 +34,6 @@ enum sway_container_layout {
|
|||
L_VERT,
|
||||
L_STACKED,
|
||||
L_TABBED,
|
||||
L_FLOATING,
|
||||
};
|
||||
|
||||
enum sway_container_border {
|
||||
|
|
@ -70,6 +69,9 @@ struct sway_container {
|
|||
enum sway_container_layout layout;
|
||||
enum sway_container_layout prev_layout;
|
||||
|
||||
// Saves us from searching the list of children/floating in the parent
|
||||
bool is_floating;
|
||||
|
||||
// For C_ROOT, this has no meaning
|
||||
// For C_OUTPUT, this is the output position in layout coordinates
|
||||
// For other types, this is the position in output-local coordinates
|
||||
|
|
|
|||
|
|
@ -46,6 +46,9 @@ struct sway_container *container_add_sibling(struct sway_container *parent,
|
|||
|
||||
struct sway_container *container_remove_child(struct sway_container *child);
|
||||
|
||||
void container_add_floating(struct sway_container *workspace,
|
||||
struct sway_container *child);
|
||||
|
||||
struct sway_container *container_replace_child(struct sway_container *child,
|
||||
struct sway_container *new_child);
|
||||
|
||||
|
|
|
|||
|
|
@ -8,6 +8,7 @@ struct sway_view;
|
|||
struct sway_workspace {
|
||||
struct sway_container *swayc;
|
||||
struct sway_view *fullscreen;
|
||||
list_t *floating;
|
||||
};
|
||||
|
||||
extern char *prev_workspace_name;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue