From 7b6aca47110025ec87ffedb1fcb2ce41e406f8b6 Mon Sep 17 00:00:00 2001 From: athrungithub Date: Wed, 23 Jan 2019 21:50:57 -0300 Subject: [PATCH] check if scratchpad is show in another workspace --- sway/commands/scratchpad.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sway/commands/scratchpad.c b/sway/commands/scratchpad.c index 62267e922..71afa306d 100644 --- a/sway/commands/scratchpad.c +++ b/sway/commands/scratchpad.c @@ -75,7 +75,7 @@ static void scratchpad_toggle_container(struct sway_container *con) { struct sway_seat *seat = input_manager_current_seat(); struct sway_workspace *ws = seat_get_focused_workspace(seat); // Check if it matches a currently visible scratchpad window and hide it. - if (con->workspace && (ws == con->workspace)) { + if (con->workspace && ws == con->workspace) { root_scratchpad_hide(con); return; }