Handle present events with NULL timespec field

See [1].

[1]: https://github.com/swaywm/wlroots/pull/3245
This commit is contained in:
Simon Ser 2021-10-15 19:34:03 +02:00
parent 555cd96e05
commit 0c210a5e68

View file

@ -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;
}