aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFurkan Sahin <furkan-dev@proton.me>2019-01-30 11:05:46 -0300
committerFurkan Sahin <furkan-dev@proton.me>2019-01-30 11:05:46 -0300
commit1f32115d9bde9b712025ddd0e734269039c89ada (patch)
treeda6e4444239550ddb5bde2156b3c2c7a50805bb1
parent5ea020efe863f0d6ee75de92682d62297299113f (diff)
criteria & scratchpad verify if show in another workspace (#3522)
check if scratchpad is show in another workspace
-rw-r--r--sway/commands/scratchpad.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/sway/commands/scratchpad.c b/sway/commands/scratchpad.c
index 714efa2b..71afa306 100644
--- a/sway/commands/scratchpad.c
+++ b/sway/commands/scratchpad.c
@@ -72,8 +72,10 @@ static void scratchpad_toggle_container(struct sway_container *con) {
return;
}
+ 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) {
+ if (con->workspace && ws == con->workspace) {
root_scratchpad_hide(con);
return;
}