From eb5021ef990fb29ff86544aea58d687ad62c757a Mon Sep 17 00:00:00 2001 From: Ronan Pigott Date: Wed, 16 Nov 2022 15:50:34 -0700 Subject: 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. --- include/sway/desktop/launcher.h | 14 ++++++++++++++ 1 file changed, 14 insertions(+) create mode 100644 include/sway/desktop/launcher.h (limited to 'include/sway/desktop') 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 + +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 -- cgit v1.2.3