mirror of
https://github.com/swaywm/sway.git
synced 2025-11-15 06:59:50 -05:00
couple small fixes
This commit is contained in:
parent
2298143d09
commit
9ecb43ea3b
2 changed files with 14 additions and 8 deletions
|
|
@ -101,6 +101,7 @@ static void pid_workspace_cleanup() {
|
|||
pw = config->pid_workspaces->items[i];
|
||||
|
||||
if (difftime(ts.tv_sec, *pw->time_added) >= PID_WORKSPACE_TIMEOUT) {
|
||||
free_pid_workspace(config->pid_workspaces->items[i]);
|
||||
list_del(config->pid_workspaces, i);
|
||||
}
|
||||
}
|
||||
|
|
@ -126,6 +127,7 @@ void pid_workspace_add(struct pid_workspace *pw) {
|
|||
list_pw = config->pid_workspaces->items[i];
|
||||
|
||||
if (pw->pid == list_pw->pid) {
|
||||
free_pid_workspace(config->pid_workspaces->items[i]);
|
||||
list_del(config->pid_workspaces, i);
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue