From bb237f5afafb7bc3fa350f1adb7ca44ac7eb6ce3 Mon Sep 17 00:00:00 2001 From: Willow Barraco Date: Fri, 1 Mar 2024 23:42:16 +0100 Subject: [PATCH] Re-open the keyboard on the same output it was Even if the user is focusing another output while the geometry change. Signed-off-by: Willow Barraco Signed-off-by: Maarten van Gompel --- main.c | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/main.c b/main.c index bc73c8a..5e2e423 100644 --- a/main.c +++ b/main.c @@ -733,8 +733,12 @@ show() wp_viewporter_get_viewport(viewporter, draw_surf.surf); } + struct wl_output *current_output_data = NULL; + if (current_output) + current_output_data = current_output->data; + layer_surface = zwlr_layer_shell_v1_get_layer_surface( - layer_shell, draw_surf.surf, NULL, layer, namespace); + layer_shell, draw_surf.surf, current_output_data, layer, namespace); zwlr_layer_surface_v1_set_size(layer_surface, 0, height); zwlr_layer_surface_v1_set_anchor(layer_surface, anchor);