Fix crash when using $desktop_name with out_to_x no
authorPavel Labath <pavelo@centrum.sk>
Wed, 3 Mar 2010 10:56:25 +0000 (11:56 +0100)
committerPavel Labath <pavelo@centrum.sk>
Wed, 3 Mar 2010 10:56:25 +0000 (11:56 +0100)
src/x11.c

index dcb5df1..46a4629 100644 (file)
--- a/src/x11.c
+++ b/src/x11.c
@@ -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);