commit 0c210a5e68ea611b7520da6a2bf9c290a1faf571
parent 555cd96e0529539df5036bfcf7c6ffe0ee23931c
Author: Simon Ser <contact@emersion.fr>
Date: Fri, 15 Oct 2021 19:34:03 +0200
Handle present events with NULL timespec field
See [1].
[1]: https://github.com/swaywm/wlroots/pull/3245
Diffstat:
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git 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;
}