mirror of
https://github.com/swaywm/sway.git
synced 2025-11-07 13:29:56 -05:00
Restore workspaces to outputs based on priority
This commit is contained in:
parent
c65c84444e
commit
5c9a917df9
5 changed files with 130 additions and 17 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue