src: Make sure we don't die out when performing output hot-plugging
[src/agl-compositor.git] / src / shell.c
index 4fbd8d5..8a21ed8 100644 (file)
@@ -1134,8 +1134,8 @@ insert_black_curtain(struct ivi_output *output)
 
        if ((!output &&
            !output->fullscreen_view.fs &&
-           !output->fullscreen_view.fs->view) || !output->output ||
-           !output->fullscreen_view.fs) {
+           !output->fullscreen_view.fs->view) ||
+           !output->output || !output->fullscreen_view.fs) {
                weston_log("Output %s doesn't have a surface installed!\n", output->name);
                return;
        }