mirror of
https://github.com/Llewellynvdm/conky.git
synced 2024-12-25 04:06:03 +00:00
Add this back.
This commit is contained in:
parent
c48df06359
commit
59513b4c65
@ -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);
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user