summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--sway/desktop/output.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/sway/desktop/output.c b/sway/desktop/output.c
index 8cdd47f5..edec71ad 100644
--- a/sway/desktop/output.c
+++ b/sway/desktop/output.c
@@ -827,7 +827,7 @@ static void handle_present(struct wl_listener *listener, void *data) {
827 struct sway_output *output = wl_container_of(listener, output, present); 827 struct sway_output *output = wl_container_of(listener, output, present);
828 struct wlr_output_event_present *output_event = data; 828 struct wlr_output_event_present *output_event = data;
829 829
830 if (!output->enabled) { 830 if (!output->enabled || !output_event->presented) {
831 return; 831 return;
832 } 832 }
833 833