Merge pull request #870 from psychon/x11_needs_swap

x11 backend: Expose events mean "needs swap"
This commit is contained in:
Drew DeVault 2018-04-15 09:35:29 -04:00 committed by GitHub
commit 72411a7a7c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 2 deletions

View File

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