backend/wayland: use xdg-decoration-unstable-v1

This allows the toplevel to have proper decorations on compositors that support
xdg-decoration-unstable-v1.
This commit is contained in:
Simon Ser 2019-05-06 19:06:31 +03:00 committed by Drew DeVault
parent 6ae6b5dbb6
commit 292d20e4c1
3 changed files with 25 additions and 0 deletions

View file

@ -32,6 +32,7 @@ struct wlr_wl_backend {
struct wl_registry *registry;
struct wl_compositor *compositor;
struct xdg_wm_base *xdg_wm_base;
struct zxdg_decoration_manager_v1 *zxdg_decoration_manager_v1;
struct wl_shm *shm;
struct wl_seat *seat;
struct wl_pointer *pointer;
@ -50,6 +51,7 @@ struct wlr_wl_output {
struct wl_callback *frame_callback;
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;