mirror of
https://github.com/swaywm/sway.git
synced 2024-12-29 16:36:26 +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 wlr_output_event_present *output_event = data;
|
||||
|
||||
if (!output->enabled) {
|
||||
if (!output->enabled || !output_event->presented) {
|
||||
return;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue