mirror of
https://github.com/Llewellynvdm/conky.git
synced 2024-12-27 20:44:56 +00:00
Fix: Make sure lua works without X11
This commit is contained in:
parent
ca04b9a3c7
commit
7ce38ecf09
@ -435,6 +435,7 @@ void llua_setup_window_table(int text_start_x, int text_start_y, int text_width,
|
|||||||
if (!lua_L) return;
|
if (!lua_L) return;
|
||||||
lua_newtable(lua_L);
|
lua_newtable(lua_L);
|
||||||
|
|
||||||
|
if (output_methods & TO_X) {
|
||||||
llua_set_userdata("drawable", "Drawable", (void*)&window.drawable);
|
llua_set_userdata("drawable", "Drawable", (void*)&window.drawable);
|
||||||
llua_set_userdata("visual", "Visual", window.visual);
|
llua_set_userdata("visual", "Visual", window.visual);
|
||||||
llua_set_userdata("display", "Display", display);
|
llua_set_userdata("display", "Display", display);
|
||||||
@ -452,6 +453,7 @@ void llua_setup_window_table(int text_start_x, int text_start_y, int text_width,
|
|||||||
llua_set_long("text_height", text_height);
|
llua_set_long("text_height", text_height);
|
||||||
|
|
||||||
lua_setglobal(lua_L, "conky_window");
|
lua_setglobal(lua_L, "conky_window");
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
void llua_update_window_table(int text_start_x, int text_start_y, int text_width, int text_height)
|
void llua_update_window_table(int text_start_x, int text_start_y, int text_width, int text_height)
|
||||||
|
Loading…
Reference in New Issue
Block a user