diff --git a/legacy/ecore/src/lib/ecore_x/xlib/ecore_x_window.c b/legacy/ecore/src/lib/ecore_x/xlib/ecore_x_window.c index 416ed5a5c9..7beffcd9ae 100644 --- a/legacy/ecore/src/lib/ecore_x/xlib/ecore_x_window.c +++ b/legacy/ecore/src/lib/ecore_x/xlib/ecore_x_window.c @@ -1347,8 +1347,9 @@ ecore_x_window_argb_get(Ecore_X_Window win) #ifdef ECORE_XRENDER XWindowAttributes att; XRenderPictFormat *fmt; - - XGetWindowAttributes(_ecore_x_disp, win, &att); + + att.visual = 0; + if (!XGetWindowAttributes(_ecore_x_disp, win, &att)) return 0; fmt = XRenderFindVisualFormat(_ecore_x_disp, att.visual); if (!fmt) return 0; if ((fmt->type == PictTypeDirect) && (fmt->direct.alphaMask)) return 1;