Remove unused fields in swaylock_surface

This commit is contained in:
Manuel Stoeckl 2023-01-14 15:16:07 -05:00 committed by Simon Ser
parent 10ab8b2740
commit 4a44c306e7
2 changed files with 0 additions and 5 deletions

View File

@ -109,7 +109,6 @@ struct swaylock_surface {
struct pool_buffer indicator_buffers[2]; struct pool_buffer indicator_buffers[2];
bool frame_pending, dirty; bool frame_pending, dirty;
uint32_t width, height; uint32_t width, height;
uint32_t indicator_width, indicator_height;
int32_t scale; int32_t scale;
enum wl_output_subpixel subpixel; enum wl_output_subpixel subpixel;
char *output_name; char *output_name;

4
main.c
View File

@ -184,8 +184,6 @@ static void layer_surface_configure(void *data,
struct swaylock_surface *surface = data; struct swaylock_surface *surface = data;
surface->width = width; surface->width = width;
surface->height = height; surface->height = height;
surface->indicator_width = 0;
surface->indicator_height = 0;
zwlr_layer_surface_v1_ack_configure(layer_surface, serial); zwlr_layer_surface_v1_ack_configure(layer_surface, serial);
render_frame_background(surface); render_frame_background(surface);
render_frame(surface); render_frame(surface);
@ -208,8 +206,6 @@ static void ext_session_lock_surface_v1_handle_configure(void *data,
struct swaylock_surface *surface = data; struct swaylock_surface *surface = data;
surface->width = width; surface->width = width;
surface->height = height; surface->height = height;
surface->indicator_width = 0;
surface->indicator_height = 0;
ext_session_lock_surface_v1_ack_configure(lock_surface, serial); ext_session_lock_surface_v1_ack_configure(lock_surface, serial);
render_frame_background(surface); render_frame_background(surface);
render_frame(surface); render_frame(surface);