fix indicator position
This commit is contained in:
parent
11560381bf
commit
25ce4b12bb
5
render.c
5
render.c
@ -80,9 +80,10 @@ void render_frame(struct swaylock_surface *surface) {
|
||||
int new_width = buffer_diameter;
|
||||
int new_height = buffer_diameter;
|
||||
|
||||
int subsurf_xpos = surface->width / 2 - buffer_width / 2;
|
||||
int subsurf_xpos = surface->width / 2 -
|
||||
(state->args.radius + state->args.thickness) + 2 / surface->scale;
|
||||
int subsurf_ypos = surface->height / 2 -
|
||||
(state->args.radius + state->args.thickness);
|
||||
(state->args.radius + state->args.thickness) + 2 / surface->scale;
|
||||
wl_subsurface_set_position(surface->subsurface, subsurf_xpos, subsurf_ypos);
|
||||
|
||||
surface->current_buffer = get_next_buffer(state->shm,
|
||||
|
Loading…
Reference in New Issue
Block a user