aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSimon Ser <contact@emersion.fr>2021-10-15 19:34:03 +0200
committerSimon Ser <contact@emersion.fr>2021-10-15 19:34:03 +0200
commit0c210a5e68ea611b7520da6a2bf9c290a1faf571 (patch)
treeb6ecb4927a10dadd3c5fd884bc3d9fbed098bb9c
parent555cd96e0529539df5036bfcf7c6ffe0ee23931c (diff)
Handle present events with NULL timespec field
See [1]. [1]: https://github.com/swaywm/wlroots/pull/3245
-rw-r--r--sway/desktop/output.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/sway/desktop/output.c b/sway/desktop/output.c
index 8cdd47f5..edec71ad 100644
--- a/sway/desktop/output.c
+++ b/sway/desktop/output.c
@@ -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;
}