Skip to content

Commit

Permalink
Re-open the keyboard on the same output it was
Browse files Browse the repository at this point in the history
Even if the user is focusing another output while the geometry change.

Signed-off-by: Willow Barraco <[email protected]>
Signed-off-by: Maarten van Gompel <[email protected]>
  • Loading branch information
stacyharper authored and proycon committed Mar 3, 2024
1 parent b083169 commit bb237f5
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion main.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit bb237f5

Please sign in to comment.