Skip to content

Commit

Permalink
Handle present events with NULL timespec field
Browse files Browse the repository at this point in the history
See [1].

[1]: swaywm/wlroots#3245
  • Loading branch information
emersion committed Oct 15, 2021
1 parent 555cd96 commit 0c210a5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion sway/desktop/output.c
Expand Up @@ -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;
}

Expand Down

0 comments on commit 0c210a5

Please sign in to comment.