[client] wayland: fail gracefully when interfaces are too old

Before, we just attempt to bind, causing an obscure Wayland error.
This commit checks the interface versions and print better error
messages.
This commit is contained in:
Quantum
2021-02-24 19:44:49 -05:00
committed by Geoffrey McRae
parent 1111045546
commit 798a1aadb5
5 changed files with 13 additions and 7 deletions

View File

@@ -139,7 +139,7 @@ bool waylandWindowInit(const char * title, bool fullscreen, bool maximize, bool
if (!wlWm.compositor)
{
DEBUG_ERROR("Compositor missing wl_compositor, will not proceed");
DEBUG_ERROR("Compositor missing wl_compositor (version 4+), will not proceed");
return false;
}