Skip to content

Commit

Permalink
Do not commit surfaces before ext_session_lock_v1 configure event
Browse files Browse the repository at this point in the history
When the upstream branch was merged in, this change was missed for the
initially_render_surface() function, which was split out from
create_surface().

Fixes jirutka#3.
  • Loading branch information
PeterCxy committed Jan 11, 2023
1 parent a1cf657 commit 19412ed
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions main.c
Original file line number Diff line number Diff line change
Expand Up @@ -352,9 +352,11 @@ static void initially_render_surface(struct swaylock_surface *surface) {
wl_region_destroy(region);
}

render_frame_background(surface);
render_background_fade_prepare(surface, surface->current_buffer);
render_frame(surface);
if (!surface->state->ext_session_lock_v1) {
render_frame_background(surface);
render_background_fade_prepare(surface, surface->current_buffer);
render_frame(surface);
}
}

static void layer_surface_configure(void *data,
Expand Down

0 comments on commit 19412ed

Please sign in to comment.