wayland: use wl_compositor version 6 when available

This commit is contained in:
Leonardo Hernández Hernández 2024-01-09 22:51:17 -06:00 committed by Daniel Eklöf
parent 4ee4f47065
commit 7e3da3007b
No known key found for this signature in database
GPG key ID: 5BBD4992C116573F
4 changed files with 66 additions and 10 deletions

View file

@ -363,6 +363,7 @@ struct wl_window {
bool unmapped;
float scale;
int preferred_buffer_scale;
struct zxdg_toplevel_decoration_v1 *xdg_toplevel_decoration;
@ -429,6 +430,8 @@ struct wayland {
struct wl_subcompositor *sub_compositor;
struct wl_shm *shm;
bool has_wl_compositor_v6;
struct zxdg_output_manager_v1 *xdg_output_manager;
struct xdg_wm_base *shell;