From 0337609667ad1d01e0e0dc19231373df3fbf7c87 Mon Sep 17 00:00:00 2001
From: Ryan Dwyer <ryandwyer1@gmail.com>
Date: Fri, 27 Jul 2018 13:48:20 +1000
Subject: Focus child when showing a scratchpad container

---
 sway/scratchpad.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/sway/scratchpad.c b/sway/scratchpad.c
index 787af6e1..b7d6fd99 100644
--- a/sway/scratchpad.c
+++ b/sway/scratchpad.c
@@ -82,7 +82,7 @@ static void scratchpad_show(struct sway_container *con) {
 	}
 
 	arrange_windows(ws);
-	seat_set_focus(seat, con);
+	seat_set_focus(seat, seat_get_focus_inactive(seat, con));
 
 	container_set_dirty(con->parent);
 }
-- 
cgit v1.2.3