1
0
mirror of https://github.com/Llewellynvdm/conky.git synced 2024-12-26 20:31:17 +00:00

Fix crash when using $desktop_name with out_to_x no

This commit is contained in:
Pavel Labath 2010-03-03 11:56:25 +01:00
parent a9e5820a34
commit 0c83d64a86

View File

@ -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);