Detect x11/wayland at runtime

This commit is contained in:
Loki
2021-09-06 20:40:41 +02:00
parent 10ca72f934
commit d68b8138a5
3 changed files with 37 additions and 3 deletions

View File

@@ -756,7 +756,9 @@ int load_xcb() {
int load_x11() {
// This will be called once only
static int x11_status = x11::init() || x11::rr::init() || x11::fix::init();
static int x11_status =
window_system == window_system_e::NONE ||
x11::init() || x11::rr::init() || x11::fix::init();
return x11_status;
}