From 4a44c306e73694594f804f84cb9f9821cc1d9e13 Mon Sep 17 00:00:00 2001 From: Manuel Stoeckl Date: Sat, 14 Jan 2023 15:16:07 -0500 Subject: [PATCH] Remove unused fields in swaylock_surface --- include/swaylock.h | 1 - main.c | 4 ---- 2 files changed, 5 deletions(-) diff --git a/include/swaylock.h b/include/swaylock.h index e29a99e..077fc9a 100644 --- a/include/swaylock.h +++ b/include/swaylock.h @@ -109,7 +109,6 @@ struct swaylock_surface { struct pool_buffer indicator_buffers[2]; bool frame_pending, dirty; uint32_t width, height; - uint32_t indicator_width, indicator_height; int32_t scale; enum wl_output_subpixel subpixel; char *output_name; diff --git a/main.c b/main.c index e288df5..2a5dbc2 100644 --- a/main.c +++ b/main.c @@ -184,8 +184,6 @@ static void layer_surface_configure(void *data, struct swaylock_surface *surface = data; surface->width = width; surface->height = height; - surface->indicator_width = 0; - surface->indicator_height = 0; zwlr_layer_surface_v1_ack_configure(layer_surface, serial); render_frame_background(surface); render_frame(surface); @@ -208,8 +206,6 @@ static void ext_session_lock_surface_v1_handle_configure(void *data, struct swaylock_surface *surface = data; surface->width = width; surface->height = height; - surface->indicator_width = 0; - surface->indicator_height = 0; ext_session_lock_surface_v1_ack_configure(lock_surface, serial); render_frame_background(surface); render_frame(surface);