Ecore_Evas: Don't need the WindowAttributes variable unless we are an

argb window. 

(Sorry vtorri).



SVN revision: 63534
This commit is contained in:
Christopher Michael 2011-09-22 09:26:02 +00:00
parent 4ac5e88875
commit fe35a0421b
1 changed files with 2 additions and 1 deletions

View 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;