1
0
mirror of https://github.com/Llewellynvdm/conky.git synced 2024-11-05 21:07:52 +00:00

Add this back.

This commit is contained in:
Brenden Matthews 2022-12-25 20:45:31 -05:00 committed by Brenden Matthews
parent c48df06359
commit 59513b4c65

View File

@ -239,6 +239,12 @@ static void init_x11() {
if ((display = XOpenDisplay(disp)) == nullptr) {
std::string err =
std::string("can't open display: ") + XDisplayName(disp);
#ifdef BUILD_WAYLAND
fprintf(stderr, "%s\n", err.c_str());
return;
#else /* BUILD_WAYLAND */
throw std::runtime_error(err);
#endif /* BUILD_WAYLAND */
throw std::runtime_error(err);
}
}