aboutsummaryrefslogtreecommitdiff
path: root/backend/x11
diff options
context:
space:
mode:
Diffstat (limited to 'backend/x11')
-rw-r--r--backend/x11/output.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/backend/x11/output.c b/backend/x11/output.c
index 4e016afe..f2b90cd3 100644
--- a/backend/x11/output.c
+++ b/backend/x11/output.c
@@ -162,11 +162,17 @@ static bool output_commit(struct wlr_output *wlr_output) {
return true;
}
+static void output_rollback(struct wlr_output *wlr_output) {
+ struct wlr_x11_output *output = get_x11_output_from_output(wlr_output);
+ wlr_egl_make_current(&output->x11->egl, EGL_NO_SURFACE, NULL);
+}
+
static const struct wlr_output_impl output_impl = {
.destroy = output_destroy,
.attach_render = output_attach_render,
.test = output_test,
.commit = output_commit,
+ .rollback = output_rollback,
};
struct wlr_output *wlr_x11_output_create(struct wlr_backend *backend) {