From ab9838888ded2bb44fddfb75450bedc2f4019518 Mon Sep 17 00:00:00 2001 From: Daniel Barlow Date: Tue, 24 Aug 2021 21:24:08 +0100 Subject: [PATCH] implement commented-out bit in seat_disinhibit_input --- include/labwc.h | 2 ++ src/server.c | 7 +++---- 2 files changed, 5 insertions(+), 4 deletions(-) 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); -*/ }