mirror of
https://github.com/Llewellynvdm/conky.git
synced 2024-11-15 17:47:09 +00:00
Fix crash when using $desktop_name with out_to_x no
This commit is contained in:
parent
a9e5820a34
commit
0c83d64a86
@ -778,7 +778,7 @@ void get_x11_desktop_info(Display *current_display, Atom atom)
|
||||
void update_x11info(void)
|
||||
{
|
||||
struct information *current_info = &info;
|
||||
if (!x_initialised == YES)
|
||||
if (x_initialised != YES)
|
||||
return;
|
||||
current_info->x11.monitor.number = XScreenCount(display);
|
||||
current_info->x11.monitor.current = XDefaultScreen(display);
|
||||
|
Loading…
Reference in New Issue
Block a user