1
0
mirror of https://github.com/Llewellynvdm/conky.git synced 2025-01-27 00:58:36 +00:00

x11: early-return from use_xdbe_setting::set_up if X11 not initialized

This commit is contained in:
bi4k8 2022-11-28 19:23:23 +00:00 committed by Brenden Matthews
parent 1eb88aeb43
commit b556f17648
No known key found for this signature in database
GPG Key ID: B49ABB7270D9D4FD

View File

@ -94,7 +94,7 @@ void out_to_x_setting::cleanup(lua::state &l) {
#ifdef BUILD_XDBE
bool use_xdbe_setting::set_up(lua::state &l) {
// double_buffer makes no sense when not drawing to X
if (!out_to_x.get(l)) { return false; }
if (!out_to_x.get(l) || !display || !window.window) { return false; }
int major, minor;