mirror of
https://github.com/swaywm/sway.git
synced 2026-04-25 06:46:24 -04:00
Make workspace back_and_forth seat-specific
* When using multiple seats, each seat has its own prev_workspace_name for the purpose of workspace back_and_forth. * Removes prev_workspace_name global variable. * Removes unused next_name_map function in tree/workspace.c. * Fixes memory leak in seat_destroy (seat was not freed).
This commit is contained in:
parent
3f02218b54
commit
c5a6c37275
8 changed files with 32 additions and 33 deletions
|
|
@ -465,8 +465,8 @@ static struct sway_workspace *select_workspace(struct sway_view *view) {
|
|||
|
||||
if (!ws) {
|
||||
if (strcasecmp(criteria->target, "back_and_forth") == 0) {
|
||||
if (prev_workspace_name) {
|
||||
ws = workspace_create(NULL, prev_workspace_name);
|
||||
if (seat->prev_workspace_name) {
|
||||
ws = workspace_create(NULL, seat->prev_workspace_name);
|
||||
}
|
||||
} else {
|
||||
ws = workspace_create(NULL, criteria->target);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue