mirror of
https://github.com/swaywm/sway.git
synced 2025-11-22 06:59:48 -05:00
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.
This commit is contained in:
parent
af8a5a8918
commit
eb5021ef99
8 changed files with 207 additions and 188 deletions
14
include/sway/desktop/launcher.h
Normal file
14
include/sway/desktop/launcher.h
Normal file
|
|
@ -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
|
||||
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue