Always give keyboard focus to the topmost layer

This commit is contained in:
Drew DeVault 2018-04-02 15:48:22 -04:00
parent 883d8d306c
commit a94f4d0edc
4 changed files with 89 additions and 7 deletions

View file

@ -214,7 +214,12 @@ void arrange_layers(struct roots_output *output) {
break;
}
}
wlr_log(L_DEBUG, "topmost interactive layer: %p", topmost);
struct roots_input *input = output->desktop->server->input;
struct roots_seat *seat;
wl_list_for_each(seat, &input->seats, link) {
roots_seat_set_focus_layer(seat, topmost);
}
}
static void handle_output_destroy(struct wl_listener *listener, void *data) {