devilhorns pushed a commit to branch master.

http://git.enlightenment.org/core/efl.git/commit/?id=e3e53149502522b52a3b63cb603bf17fe18d24ab

commit e3e53149502522b52a3b63cb603bf17fe18d24ab
Author: Christopher Michael <[email protected]>
Date:   Thu Feb 10 09:30:55 2022 -0500

    ecore_buffer: Remove duplicate function calls
    
    As we already set these variables at the top of the function, there is
    no need to reget the xcb connection or generate the pixmap id.
---
 src/modules/ecore_buffer/x11_dri3/ecore_buffer_x11_dri3.c | 2 --
 1 file changed, 2 deletions(-)

diff --git a/src/modules/ecore_buffer/x11_dri3/ecore_buffer_x11_dri3.c 
b/src/modules/ecore_buffer/x11_dri3/ecore_buffer_x11_dri3.c
index d3ab7031df..e255a2791f 100644
--- a/src/modules/ecore_buffer/x11_dri3/ecore_buffer_x11_dri3.c
+++ b/src/modules/ecore_buffer/x11_dri3/ecore_buffer_x11_dri3.c
@@ -331,11 +331,9 @@ _dri3_pixmap_from_fd(Ecore_X_Display *dpy, 
Ecore_X_Drawable draw, int width, int
    if (!dpy)
      return 0;
 
-   c = XGetXCBConnection(dpy);
    if (!c)
      return 0;
 
-   pixmap = xcb_generate_id(c);
    if (!pixmap)
      return 0;
 

-- 


Reply via email to