aboutsummaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorFurkan Sahin <furkan-dev@proton.me>2018-06-07 19:36:16 -0400
committerFurkan Sahin <furkan-dev@proton.me>2018-06-07 19:36:16 -0400
commite4ebb2ff9dd4525521516f288e35a0c29310506f (patch)
tree581a2b3056df2625de3d6dbcbb970b20fff260cb /include
parent8ae5a7de695032d75d9d2c72999c959d3c90efe5 (diff)
Restore workspaces to outputs based on priority
Diffstat (limited to 'include')
-rw-r--r--include/sway/tree/workspace.h9
1 files changed, 9 insertions, 0 deletions
diff --git a/include/sway/tree/workspace.h b/include/sway/tree/workspace.h
index 81321fc8..c72a4ac0 100644
--- a/include/sway/tree/workspace.h
+++ b/include/sway/tree/workspace.h
@@ -9,6 +9,7 @@ struct sway_workspace {
struct sway_container *swayc;
struct sway_view *fullscreen;
struct sway_container *floating;
+ list_t *output_priority;
};
extern char *prev_workspace_name;
@@ -33,4 +34,12 @@ bool workspace_is_visible(struct sway_container *ws);
bool workspace_is_empty(struct sway_container *ws);
+void workspace_output_raise_priority(struct sway_container *workspace,
+ struct sway_container *old_output, struct sway_container *new_output);
+
+void workspace_output_add_priority(struct sway_container *workspace,
+ struct sway_container *output);
+
+struct sway_container *workspace_output_get_highest_available(
+ struct sway_container *ws, struct sway_container *exclude);
#endif