From 9d3da72a39771bb4d2241ea66b620d97c22298da Mon Sep 17 00:00:00 2001 From: Simon Ser Date: Wed, 10 Feb 2021 17:45:42 +0100 Subject: Use wl_surface.damage_buffer We incorrectly used the buffer size instead of the surface size. Let's not bother and just damage the maximum region. --- main.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'main.c') diff --git a/main.c b/main.c index 49fb418..a8bd106 100644 --- a/main.c +++ b/main.c @@ -307,7 +307,7 @@ static void handle_global(void *data, struct wl_registry *registry, struct swaylock_state *state = data; if (strcmp(interface, wl_compositor_interface.name) == 0) { state->compositor = wl_registry_bind(registry, name, - &wl_compositor_interface, 3); + &wl_compositor_interface, 4); } else if (strcmp(interface, wl_subcompositor_interface.name) == 0) { state->subcompositor = wl_registry_bind(registry, name, &wl_subcompositor_interface, 1); -- cgit v1.2.3