diff options
author | Ronan Pigott <ronan@rjp.ie> | 2022-11-16 15:50:34 -0700 |
---|---|---|
committer | Simon Ser <contact@emersion.fr> | 2022-11-26 09:48:58 +0100 |
commit | eb5021ef990fb29ff86544aea58d687ad62c757a (patch) | |
tree | 5962cd10d597a8b9cb98f1da6baf270a435af5c8 /include/sway/desktop | |
parent | af8a5a8918ef42336194fb1077b008a736de7af9 (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.
Diffstat (limited to 'include/sway/desktop')
-rw-r--r-- | include/sway/desktop/launcher.h | 14 |
1 files changed, 14 insertions, 0 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 |