aboutsummaryrefslogtreecommitdiff
path: root/sway/tree
diff options
context:
space:
mode:
authorRonan Pigott <rpigott@berkeley.edu>2020-07-24 10:33:01 -0700
committerBrian Ashworth <bosrsf04@gmail.com>2020-07-25 11:53:01 -0400
commit3520fd2c192f087dc6f3525b0d7d15c2790103b8 (patch)
tree4eb495070f434da5ac84a2998db3c7f7ff585d10 /sway/tree
parent4f718e6c75d2168d417b4b41c0e3d5408e0afded (diff)
view: display scratchpad hidden containers when activated by ftm
Diffstat (limited to 'sway/tree')
-rw-r--r--sway/tree/view.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/sway/tree/view.c b/sway/tree/view.c
index ac314795..2353feff 100644
--- a/sway/tree/view.c
+++ b/sway/tree/view.c
@@ -625,7 +625,12 @@ static void handle_foreign_activate_request(
struct sway_seat *seat;
wl_list_for_each(seat, &server.input->seats, link) {
if (seat->wlr_seat == event->seat) {
+ if (container_is_scratchpad_hidden_or_child(view->container)) {
+ root_scratchpad_show(view->container);
+ }
seat_set_focus_container(seat, view->container);
+ seat_consider_warp_to_focus(seat);
+ container_raise_floating(view->container);
break;
}
}