diff options
author | GhostNaN <GhostNaN@protonmail.com> | 2022-09-23 15:39:12 -0400 |
---|---|---|
committer | GhostNaN <GhostNaN@protonmail.com> | 2022-09-23 15:39:12 -0400 |
commit | 5dcdfc70ce542626e052b58278840e9018b329d9 (patch) | |
tree | f30a357856c2e95f804ec8a98d7b238815a71323 | |
parent | d1238777b154a76b3ae2b12ae0efe773d10461da (diff) |
Fix race condition on output1.3
-rw-r--r-- | src/main.c | 6 |
1 files changed, 4 insertions, 2 deletions
@@ -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; } |