x11: check that DISPLAY env exists

pull/1318/head
flightlessmango 3 weeks ago
parent 4cad060334
commit a0a31b4f64

@ -35,8 +35,11 @@ bool init_x11() {
}
failed = !display;
if (failed)
if (failed && displayid)
SPDLOG_ERROR("XOpenDisplay failed to open display '{}'", displayid);
if (!displayid)
SPDLOG_DEBUG("DISPLAY env is not set");
return !!display;
}

Loading…
Cancel
Save