aboutsummaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorSimon Ser <contact@emersion.fr>2020-12-28 12:27:27 +0100
committerSimon Ser <contact@emersion.fr>2020-12-28 16:57:56 +0100
commitcaeed70f2859ca6122622b4c768521f2057ed23d (patch)
tree27b2045a899c9298ea9cd650405d17efd4a526f4 /include
parent23b6f3e3f50296ce612b2e8051f745829778b863 (diff)
backend/x11: create per-window present event contexts
The Present protocol states: > An event context is associated with a specific window; using an existing > event context with a different window generates a Match error. Instead of a global event context, use a per-window event context to fix this error: [backend/x11/backend.c:608] X11 error: op Present (SelectInput), code Match (no extension), sequence 63, value 4194307 Closes: https://github.com/swaywm/wlroots/issues/2577
Diffstat (limited to 'include')
-rw-r--r--include/backend/x11.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/include/backend/x11.h b/include/backend/x11.h
index 22835387..e952587d 100644
--- a/include/backend/x11.h
+++ b/include/backend/x11.h
@@ -34,6 +34,7 @@ struct wlr_x11_output {
struct wl_list link; // wlr_x11_backend::outputs
xcb_window_t win;
+ xcb_present_event_t present_event_id;
struct wlr_swapchain *swapchain;
struct wlr_buffer *back_buffer;
@@ -68,7 +69,6 @@ struct wlr_x11_backend {
xcb_depth_t *depth;
xcb_visualid_t visualid;
xcb_colormap_t colormap;
- xcb_present_event_t present_event_id;
size_t requested_outputs;
size_t last_output_num;