Merge with conky1-extra, Changelog contains the changes
[monky] / src / x11.c
index 4769de9..f62e02b 100644 (file)
--- a/src/x11.c
+++ b/src/x11.c
@@ -550,4 +550,10 @@ void create_gc(void)
                GCFunction | GCGraphicsExposures, &values);
 }
 
+void update_x11info(void)
+{
+       struct information *current_info = &info;
+       current_info->x11.monitor.number = XScreenCount(display);
+       current_info->x11.monitor.current = XDefaultScreen(display);
+}
 #endif /* X11 */