diff options
author | Simon Ser <contact@emersion.fr> | 2020-11-26 11:40:23 +0100 |
---|---|---|
committer | Simon Ser <contact@emersion.fr> | 2020-12-13 12:16:28 +0100 |
commit | 3923ff005ddc56729d0ed699dbdf47182f3f68c8 (patch) | |
tree | f13b6cf7c9ab0640c5359921b993f73d088afeef /include/backend | |
parent | 038285d49671a30750ee06fb24b923ccca29cca5 (diff) |
backend/wayland: use wlr_swapchain for main surface
The cursor surface still uses a wl_egl_window.
References: https://github.com/swaywm/wlroots/issues/1352
Diffstat (limited to 'include/backend')
-rw-r--r-- | include/backend/wayland.h | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/include/backend/wayland.h b/include/backend/wayland.h index 9596b72c..8189c463 100644 --- a/include/backend/wayland.h +++ b/include/backend/wayland.h @@ -25,6 +25,8 @@ struct wlr_wl_backend { struct wl_list outputs; struct wlr_egl egl; struct wlr_renderer *renderer; + struct wlr_drm_format *format; + struct wlr_allocator *allocator; size_t requested_outputs; size_t last_output_num; struct wl_listener local_display_destroy; @@ -67,10 +69,11 @@ struct wlr_wl_output { struct xdg_surface *xdg_surface; struct xdg_toplevel *xdg_toplevel; struct zxdg_toplevel_decoration_v1 *zxdg_toplevel_decoration_v1; - struct wl_egl_window *egl_window; - EGLSurface egl_surface; struct wl_list presentation_feedbacks; + struct wlr_swapchain *swapchain; + struct wlr_buffer *back_buffer; + uint32_t enter_serial; struct { |