Handle missing case of POLICY_NONE.
authordevilhorns <devilhorns@7cbeb6ba-43b4-40fd-8cce-4c39aea84d33>
Thu, 19 Aug 2010 14:32:16 +0000 (14:32 +0000)
committerdevilhorns <devilhorns@7cbeb6ba-43b4-40fd-8cce-4c39aea84d33>
Thu, 19 Aug 2010 14:32:16 +0000 (14:32 +0000)
git-svn-id: http://svn.enlightenment.org/svn/e/trunk/ecore@51395 7cbeb6ba-43b4-40fd-8cce-4c39aea84d33

src/lib/ecore_x/xlib/ecore_x_randr_12.c

index d75a458..8f8cef9 100644 (file)
@@ -1079,11 +1079,10 @@ ecore_x_randr_crtc_pos_relative_set(Ecore_X_Window root,
        || (ecore_x_randr_crtc_mode_get(root, crtc_r2) == Ecore_X_Randr_None))
       return EINA_FALSE;
 
-   if (!_ecore_x_randr_crtc_validate(root,
-                                     crtc_r1) ||
-        (!(crtc_r1 != crtc_r2) &&
-       !_ecore_x_randr_crtc_validate(root, crtc_r2)))
-      return EINA_FALSE;
+   if (!_ecore_x_randr_crtc_validate(root, crtc_r1) ||
+       (!(crtc_r1 != crtc_r2) &&
+           !_ecore_x_randr_crtc_validate(root, crtc_r2)))
+     return EINA_FALSE;
 
    ecore_x_randr_crtc_geometry_get(root,
                                    crtc_r1,
@@ -1334,6 +1333,8 @@ ecore_x_randr_crtc_pos_relative_set(Ecore_X_Window root,
          free (r2_r1_outputs);
          return ret;
         */
+      case ECORE_X_RANDR_OUTPUT_POLICY_NONE:
+        break;
      }
    if ((x_n == r1_geo.x) && (y_n == r1_geo.x))
       return EINA_TRUE;