fix first map bug handling to handle more than first window map.
authorraster <raster@7cbeb6ba-43b4-40fd-8cce-4c39aea84d33>
Mon, 13 Sep 2010 22:16:26 +0000 (22:16 +0000)
committerraster <raster@7cbeb6ba-43b4-40fd-8cce-4c39aea84d33>
Mon, 13 Sep 2010 22:16:26 +0000 (22:16 +0000)
git-svn-id: svn+ssh://svn.enlightenment.org/var/svn/e/trunk/ecore@52200 7cbeb6ba-43b4-40fd-8cce-4c39aea84d33

src/lib/ecore_evas/ecore_evas_x.c

index be26bbf..af57938 100644 (file)
@@ -1005,10 +1005,10 @@ _ecore_evas_x_event_window_show(void *data __UNUSED__, int type __UNUSED__, void
            first_map_bug = atoi(getenv("ECORE_EVAS_GL_FIRST_MAP_BUG"));
         else
            first_map_bug = 0;
-        if ((first_map_bug) &&
-            (!strcmp(ee->driver, "opengl_x11")))
-           evas_damage_rectangle_add(ee->evas, 0, 0, ee->w, ee->h);
      }
+   if ((first_map_bug) &&
+       (!strcmp(ee->driver, "opengl_x11")))
+      evas_damage_rectangle_add(ee->evas, 0, 0, ee->w, ee->h);
    if (ee->visible) return ECORE_CALLBACK_DONE;
 //   printf("SHOW EVENT %p\n", ee);
    ee->visible = 1;