diff options
| author | Ryan Dwyer <[email protected]> | 2018-10-21 11:26:22 +1000 |
|---|---|---|
| committer | Ryan Dwyer <[email protected]> | 2018-10-21 11:26:22 +1000 |
| commit | c5a6c37275978ddc8c221ca73ae1a39254dd68f5 (patch) | |
| tree | 2255d845647357cdbe6fdfcb1c6a40210a69ddb7 /sway/input | |
| parent | 3f02218b54645a68a7496eb15b7bb16d26b75ae2 (diff) | |
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).
Diffstat (limited to 'sway/input')
| -rw-r--r-- | sway/input/seat.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/sway/input/seat.c b/sway/input/seat.c index 2e352b19..16acc8a5 100644 --- a/sway/input/seat.c +++ b/sway/input/seat.c @@ -51,6 +51,8 @@ void seat_destroy(struct sway_seat *seat) { wl_list_remove(&seat->new_drag_icon.link); wl_list_remove(&seat->link); wlr_seat_destroy(seat->wlr_seat); + free(seat->prev_workspace_name); + free(seat); } static struct sway_seat_node *seat_node_from_node( |
