aboutsummaryrefslogtreecommitdiffstats
path: root/sway/tree/view.c
diff options
context:
space:
mode:
authorLibravatar Ronan Pigott <rpigott@berkeley.edu>2020-07-24 10:33:01 -0700
committerLibravatar Brian Ashworth <bosrsf04@gmail.com>2020-07-25 11:53:01 -0400
commit3520fd2c192f087dc6f3525b0d7d15c2790103b8 (patch)
tree4eb495070f434da5ac84a2998db3c7f7ff585d10 /sway/tree/view.c
parentFix X11 clients getting stuck minimized (diff)
downloadsway-3520fd2c192f087dc6f3525b0d7d15c2790103b8.tar.gz
sway-3520fd2c192f087dc6f3525b0d7d15c2790103b8.tar.zst
sway-3520fd2c192f087dc6f3525b0d7d15c2790103b8.zip
view: display scratchpad hidden containers when activated by ftm
Diffstat (limited to 'sway/tree/view.c')
-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(
625 struct sway_seat *seat; 625 struct sway_seat *seat;
626 wl_list_for_each(seat, &server.input->seats, link) { 626 wl_list_for_each(seat, &server.input->seats, link) {
627 if (seat->wlr_seat == event->seat) { 627 if (seat->wlr_seat == event->seat) {
628 if (container_is_scratchpad_hidden_or_child(view->container)) {
629 root_scratchpad_show(view->container);
630 }
628 seat_set_focus_container(seat, view->container); 631 seat_set_focus_container(seat, view->container);
632 seat_consider_warp_to_focus(seat);
633 container_raise_floating(view->container);
629 break; 634 break;
630 } 635 }
631 } 636 }