aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDrew DeVault <sir@cmpwn.com>2018-04-15 09:35:29 -0400
committerGitHub <noreply@github.com>2018-04-15 09:35:29 -0400
commit72411a7a7cf41d95c21940a0f905231e688b4ca4 (patch)
tree5656013ce6d9b4f65adc791fe95671e2e1ba0fc6
parent1db8667ceaef0e73b0937c277ad16268429ff4c5 (diff)
parente5ab12339fb0531e0938c60b3c4da569c71cf2c4 (diff)
Merge pull request #870 from psychon/x11_needs_swap
x11 backend: Expose events mean "needs swap"
-rw-r--r--backend/x11/backend.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/backend/x11/backend.c b/backend/x11/backend.c
index 089b3822..b4b0f154 100644
--- a/backend/x11/backend.c
+++ b/backend/x11/backend.c
@@ -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;
}