mirror of
https://github.com/swaywm/sway.git
synced 2024-11-29 11:21:28 +00:00
Handle present events with NULL timespec field
See [1]. [1]: https://github.com/swaywm/wlroots/pull/3245
This commit is contained in:
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 wlr_output_event_present *output_event = data;
|
||||
|
||||
if (!output->enabled) {
|
||||
if (!output->enabled || !output_event->presented) {
|
||||
return;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue