mirror of
https://github.com/Llewellynvdm/conky.git
synced 2025-02-05 05:28:32 +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
|
#ifdef BUILD_XDBE
|
||||||
bool use_xdbe_setting::set_up(lua::state &l) {
|
bool use_xdbe_setting::set_up(lua::state &l) {
|
||||||
// double_buffer makes no sense when not drawing to X
|
// 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;
|
int major, minor;
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user