From: Daniel Barlow Date: Tue, 24 Aug 2021 20:24:08 +0000 (+0100) Subject: implement commented-out bit in seat_disinhibit_input X-Git-Url: https://git.mdlowis.com/?a=commitdiff_plain;h=ab9838888ded2bb44fddfb75450bedc2f4019518;p=proto%2Flabwc.git implement commented-out bit in seat_disinhibit_input --- diff --git a/include/labwc.h b/include/labwc.h index 39613272..71f74263 100644 --- a/include/labwc.h +++ b/include/labwc.h @@ -344,6 +344,8 @@ void cursor_init(struct seat *seat); void keyboard_init(struct seat *seat); +void arrange_layers(struct output *output); + void seat_init(struct server *server); void seat_finish(struct server *server); void seat_focus_surface(struct seat *seat, struct wlr_surface *surface); diff --git a/src/server.c b/src/server.c index 3c21eedd..4542264a 100644 --- a/src/server.c +++ b/src/server.c @@ -107,11 +107,10 @@ static void seat_disinhibit_input(struct seat *seat) seat->active_client_while_inhibited = NULL; // Triggers a refocus of the topmost surface layer if necessary // TODO: Make layer surface focus per-output based on cursor position -/* - struct roots_output *output; - wl_list_for_each(output, &seat->input->server->desktop->outputs, link) { + + struct output *output; + wl_list_for_each(output, &seat->server->outputs, link) arrange_layers(output); -*/ }