From c5a6c37275978ddc8c221ca73ae1a39254dd68f5 Mon Sep 17 00:00:00 2001 From: Ryan Dwyer Date: Sun, 21 Oct 2018 11:26:22 +1000 Subject: 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). --- sway/input/seat.c | 2 ++ 1 file changed, 2 insertions(+) (limited to 'sway/input') 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( -- cgit v1.2.3