Ecore_Evas: Don't need the WindowAttributes variable unless we are an
authordevilhorns <devilhorns@7cbeb6ba-43b4-40fd-8cce-4c39aea84d33>
Thu, 22 Sep 2011 09:26:02 +0000 (09:26 +0000)
committerdevilhorns <devilhorns@7cbeb6ba-43b4-40fd-8cce-4c39aea84d33>
Thu, 22 Sep 2011 09:26:02 +0000 (09:26 +0000)
argb window.

(Sorry vtorri).

git-svn-id: svn+ssh://svn.enlightenment.org/var/svn/e/trunk/ecore@63534 7cbeb6ba-43b4-40fd-8cce-4c39aea84d33

src/lib/ecore_evas/ecore_evas_x.c

index 6407e95..487aa03 100644 (file)
@@ -2873,7 +2873,6 @@ ecore_evas_software_x11_new(const char *disp_name, Ecore_X_Window parent,
    if (einfo)
      {
         Ecore_X_Screen *screen;
-        Ecore_X_Window_Attributes at;
 
         /* FIXME: this is inefficient as its 1 or more round trips */
         screen = ecore_x_default_screen_get();
@@ -2934,6 +2933,8 @@ ecore_evas_software_x11_new(const char *disp_name, Ecore_X_Window parent,
 
         if (argb)
           {
+             Ecore_X_Window_Attributes at;
+
              ecore_x_window_attributes_get(ee->prop.window, &at);
              einfo->info.visual = at.visual;
              einfo->info.colormap = at.colormap;