From b4e3a2b0fdda3fcbc40e19c94bb7a7961aa7653c Mon Sep 17 00:00:00 2001 From: Manuel Stoeckl Date: Sat, 14 Jan 2023 14:49:47 -0500 Subject: [PATCH] Remove overridden surface attachment The removed lines had no effect, since later in `render_frame` buffer->buffer is attached to surface->child. --- render.c | 4 ---- 1 file changed, 4 deletions(-) diff --git a/render.c b/render.c index 62628ce..fee2a4b 100644 --- a/render.c +++ b/render.c @@ -108,10 +108,6 @@ void render_frame(struct swaylock_surface *surface) { return; } - // Hide subsurface until we want it visible - wl_surface_attach(surface->child, NULL, 0, 0); - wl_surface_commit(surface->child); - cairo_t *cairo = buffer->cairo; cairo_set_antialias(cairo, CAIRO_ANTIALIAS_BEST); cairo_font_options_t *fo = cairo_font_options_create();