From 112b2c41173fbafeb0c176c295ad171520e6a33f Mon Sep 17 00:00:00 2001 From: devilhorns Date: Fri, 19 Aug 2011 21:52:25 +0000 Subject: [PATCH] Ecore_X(cb): Revert caching of visual (breaks borders on terminals for some odd reason). git-svn-id: http://svn.enlightenment.org/svn/e/trunk/ecore@62598 7cbeb6ba-43b4-40fd-8cce-4c39aea84d33 --- src/lib/ecore_x/xcb/ecore_xcb_window.c | 10 +++------- 1 file changed, 3 insertions(+), 7 deletions(-) diff --git a/src/lib/ecore_x/xcb/ecore_xcb_window.c b/src/lib/ecore_x/xcb/ecore_xcb_window.c index 8f0ac6b..63ee6cb 100644 --- a/src/lib/ecore_x/xcb/ecore_xcb_window.c +++ b/src/lib/ecore_x/xcb/ecore_xcb_window.c @@ -1622,7 +1622,7 @@ _ecore_xcb_window_argb_internal_new(Ecore_X_Window parent, int x, int y, int w, #ifdef ECORE_XCB_RENDER uint32_t value_list[10]; uint32_t value_mask; - static uint32_t vis = -1; + uint32_t vis; Ecore_X_Colormap colormap; #endif @@ -1632,12 +1632,8 @@ _ecore_xcb_window_argb_internal_new(Ecore_X_Window parent, int x, int y, int w, if (parent == 0) parent = ((xcb_screen_t *)_ecore_xcb_screen)->root; - if (vis < 0) - { - vis = - _ecore_xcb_render_find_visual_id(XCB_RENDER_PICT_TYPE_DIRECT, - EINA_TRUE); - } + vis = + _ecore_xcb_render_find_visual_id(XCB_RENDER_PICT_TYPE_DIRECT, EINA_TRUE); colormap = xcb_generate_id(_ecore_xcb_conn); xcb_create_colormap(_ecore_xcb_conn, XCB_COLORMAP_ALLOC_NONE, -- 2.7.4