aboutsummaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorSimon Ser <contact@emersion.fr>2020-12-12 13:12:06 +0100
committerSimon Ser <contact@emersion.fr>2020-12-21 16:31:07 +0100
commitd6dbdd97e90882569899e458f6bbc44bdc6d0a8a (patch)
treec0aea9461c3be183ae32545df1ffb83c3b6d7bc6 /include
parentdefcd9b025c8a6ce844f8b2c772ee763cbc334b5 (diff)
backend/x11: re-use pixmaps
Instead of re-importing a buffer each time we submit a frame, re-use the pixmaps if possible.
Diffstat (limited to 'include')
-rw-r--r--include/backend/x11.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/include/backend/x11.h b/include/backend/x11.h
index b872385d..7ffcf465 100644
--- a/include/backend/x11.h
+++ b/include/backend/x11.h
@@ -115,6 +115,7 @@ struct wlr_x11_buffer {
struct wlr_buffer *buffer;
xcb_pixmap_t pixmap;
struct wl_list link; // wlr_x11_output::buffers
+ struct wl_listener buffer_destroy;
};
struct wlr_x11_format {