Bugfix: memory and thread-deleting problems
[monky] / src / x11.c
index a1ce8c0..264ddd2 100644 (file)
--- a/src/x11.c
+++ b/src/x11.c
@@ -775,13 +775,14 @@ void get_x11_desktop_info(Display *current_display, Atom atom)
        }
 }
 
-void update_x11info(void)
+int update_x11info(void)
 {
        struct information *current_info = &info;
        if (x_initialised != YES)
-               return;
+               return 0;
        current_info->x11.monitor.number = XScreenCount(display);
        current_info->x11.monitor.current = XDefaultScreen(display);
+       return 0;
 }
 
 #ifdef OWN_WINDOW