summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGhostNaN <GhostNaN@protonmail.com>2022-09-23 15:39:12 -0400
committerGhostNaN <GhostNaN@protonmail.com>2022-09-23 15:39:12 -0400
commit5dcdfc70ce542626e052b58278840e9018b329d9 (patch)
treef30a357856c2e95f804ec8a98d7b238815a71323
parentd1238777b154a76b3ae2b12ae0efe773d10461da (diff)
Fix race condition on output1.3
-rw-r--r--src/main.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/main.c b/src/main.c
index 147d285..90c772b 100644
--- a/src/main.c
+++ b/src/main.c
@@ -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;
}