x11: check that DISPLAY env exists

pull/1318/head
flightlessmango 2 months ago
parent 4cad060334
commit a0a31b4f64

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

Loading…
Cancel
Save