Handle present events with NULL timespec field

See [1].

[1]: https://github.com/swaywm/wlroots/pull/3245
master
Simon Ser 3 years ago
parent 555cd96e05
commit 0c210a5e68

@ -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 sway_output *output = wl_container_of(listener, output, present);
struct wlr_output_event_present *output_event = data; struct wlr_output_event_present *output_event = data;
if (!output->enabled) { if (!output->enabled || !output_event->presented) {
return; return;
} }

Loading…
Cancel
Save