Skip to content

Commit

Permalink
Fix race condition on output
Browse files Browse the repository at this point in the history
  • Loading branch information
GhostNaN committed Sep 23, 2022
1 parent d123877 commit 5dcdfc7
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions src/main.c
Original file line number Diff line number Diff line change
Expand Up @@ -1090,8 +1090,10 @@ int main(int argc, char **argv) {
struct display_output *output;
wl_list_for_each(output, &state.outputs, link) {
// Redraw immediately if not waiting for frame callback
if (output->frame_callback == NULL)
render(output);
if (output->frame_callback == NULL) {
if (output->egl_window && output->egl_surface)
render(output);
}
else
output->redraw_needed = true;
}
Expand Down

0 comments on commit 5dcdfc7

Please sign in to comment.