mirror of
https://github.com/swaywm/sway.git
synced 2025-11-05 13:29:51 -05:00
Replace hacky L_FLOATING container with a list
Workspaces previously had a magical `workspace->floating` container, which had a layout of L_FLOATING and whose children were actual floating views. This allowed some conveniences, but was a hacky solution because the container has to be exempt from focus, coordinate transactions with the workspace, and omit emitting IPC events (which we didn't do). This commit changes it to be a list directly in the sway_workspace. The L_FLOATING layout is no longer used so this has been removed as well. * Fixes incorrect check in the swap command (it checked if the containers had the L_FLOATING layout, but this layout applied to the magical container). * Introduces workspace_add_floating
This commit is contained in:
parent
389d159c81
commit
2b5a404ac9
20 changed files with 109 additions and 136 deletions
|
|
@ -40,7 +40,6 @@ enum sway_container_layout {
|
|||
L_VERT,
|
||||
L_STACKED,
|
||||
L_TABBED,
|
||||
L_FLOATING,
|
||||
};
|
||||
|
||||
enum sway_container_border {
|
||||
|
|
@ -87,7 +86,7 @@ struct sway_container_state {
|
|||
|
||||
// Workspace properties
|
||||
struct sway_container *ws_fullscreen;
|
||||
struct sway_container *ws_floating;
|
||||
list_t *ws_floating;
|
||||
};
|
||||
|
||||
struct sway_container {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue