From 0c210a5e68ea611b7520da6a2bf9c290a1faf571 Mon Sep 17 00:00:00 2001 From: Simon Ser Date: Fri, 15 Oct 2021 19:34:03 +0200 Subject: [PATCH] Handle present events with NULL timespec field See [1]. [1]: https://github.com/swaywm/wlroots/pull/3245 --- sway/desktop/output.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sway/desktop/output.c b/sway/desktop/output.c index 8cdd47f54..edec71ad1 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) { struct sway_output *output = wl_container_of(listener, output, present); struct wlr_output_event_present *output_event = data; - if (!output->enabled) { + if (!output->enabled || !output_event->presented) { return; }