mirror of
https://github.com/swaywm/sway.git
synced 2025-11-05 13:29:51 -05:00
Implement pid->workspace tracking
When you spawn a process with the exec command, sway now notes the workspace you had focused and the pid of the child process, then assigns that workspace to the child when its window appears. Some of this is carried over from sway 0.15, but with some major refactoring and centralization of state.
This commit is contained in:
parent
62a7b762ac
commit
acd79e1505
10 changed files with 154 additions and 33 deletions
|
|
@ -42,4 +42,9 @@ void workspace_output_add_priority(struct sway_container *workspace,
|
|||
|
||||
struct sway_container *workspace_output_get_highest_available(
|
||||
struct sway_container *ws, struct sway_container *exclude);
|
||||
|
||||
struct sway_container *workspace_for_pid(pid_t pid);
|
||||
|
||||
void workspace_record_pid(pid_t pid);
|
||||
|
||||
#endif
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue