diff options
| author | Ronan Pigott <ronan@rjp.ie> | 2022-11-16 15:50:34 -0700 |
|---|---|---|
| committer | Simon Ser <contact@emersion.fr> | 2022-11-26 10:29:59 +0100 |
| commit | 25f559dcdefa4781cd2a9da7d5bb92951adcb5eb (patch) | |
| tree | 0324f45b16899066845fd6aeaca461dd54527cf1 /include | |
| parent | 52166bc1f530f477a6786707edf4b503e1a92cf5 (diff) | |
root: move the workspace matching code to its own file
This removes the pid_workspace bits from tree/root before it gets
too interesting.
No functional change.
(cherry picked from commit eb5021ef990fb29ff86544aea58d687ad62c757a)
Diffstat (limited to 'include')
| -rw-r--r-- | include/sway/desktop/launcher.h | 14 | ||||
| -rw-r--r-- | include/sway/tree/root.h | 8 |
2 files changed, 14 insertions, 8 deletions
diff --git a/include/sway/desktop/launcher.h b/include/sway/desktop/launcher.h new file mode 100644 index 00000000..cb22eb98 --- /dev/null +++ b/include/sway/desktop/launcher.h @@ -0,0 +1,14 @@ +#ifndef _SWAY_LAUNCHER_H +#define _SWAY_LAUNCHER_H + +#include <stdlib.h> + +struct sway_workspace *root_workspace_for_pid(pid_t pid); + +void root_record_workspace_pid(pid_t pid); + +void root_remove_workspace_pid(pid_t pid); + +void root_rename_pid_workspaces(const char *old_name, const char *new_name); + +#endif diff --git a/include/sway/tree/root.h b/include/sway/tree/root.h index af4124a1..a2c088e7 100644 --- a/include/sway/tree/root.h +++ b/include/sway/tree/root.h @@ -69,12 +69,6 @@ void root_scratchpad_show(struct sway_container *con); */ void root_scratchpad_hide(struct sway_container *con); -struct sway_workspace *root_workspace_for_pid(pid_t pid); - -void root_record_workspace_pid(pid_t pid); - -void root_remove_workspace_pid(pid_t pid); - void root_for_each_workspace(void (*f)(struct sway_workspace *ws, void *data), void *data); @@ -92,6 +86,4 @@ struct sway_container *root_find_container( void root_get_box(struct sway_root *root, struct wlr_box *box); -void root_rename_pid_workspaces(const char *old_name, const char *new_name); - #endif |
