Merge pull request #870 from psychon/x11_needs_swap

x11 backend: Expose events mean "needs swap"
master
Drew DeVault 7 years ago committed by GitHub
commit 72411a7a7c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -74,8 +74,8 @@ static void handle_x11_event(struct wlr_x11_backend *x11,
xcb_expose_event_t *ev = (xcb_expose_event_t *)event;
struct wlr_x11_output *output =
x11_output_from_window_id(x11, ev->window);
if (output != NULL && !output->wlr_output.frame_pending) {
wlr_output_send_frame(&output->wlr_output);
if (output != NULL) {
wlr_output_update_needs_swap(&output->wlr_output);
}
break;
}

Loading…
Cancel
Save