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:
parent
1eb88aeb43
commit
b556f17648
@ -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;
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user