mirror of
https://github.com/NickHu/sway
synced 2024-12-26 21:58:30 +01: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
1 changed files with 1 additions and 1 deletions
|
@ -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…
Reference in a new issue