summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorManuel Stoeckl <code@mstoeckl.com>2023-01-14 14:49:47 -0500
committerSimon Ser <contact@emersion.fr>2023-01-27 12:19:32 +0100
commitb4e3a2b0fdda3fcbc40e19c94bb7a7961aa7653c (patch)
treeb9fc258b2dad05f29fa776037a695439c3349980
parent2c4bafc57f278fbd2a564c357da410173be28bc6 (diff)
Remove overridden surface attachment
The removed lines had no effect, since later in `render_frame` buffer->buffer is attached to surface->child.
-rw-r--r--render.c4
1 files changed, 0 insertions, 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();