raster pushed a commit to branch master.

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

commit 56c566a31ba621aaf7ec38b9c9301c50849d17ab
Author: Carsten Haitzler (Rasterman) <[email protected]>
Date:   Tue Jun 11 18:30:41 2019 +0100

    efl sel manager - flush wl conenction in cnp to avoid hangs...
    
    we don't force buffers to flush in wl... this will fix that and force
    them removing an ugly hang for possibly seconds in cnp from client to
    client or even within a client.
    
    remember:
    
    flush your mush.
    
    @fix
---
 src/lib/elementary/efl_ui_selection_manager.c | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/src/lib/elementary/efl_ui_selection_manager.c 
b/src/lib/elementary/efl_ui_selection_manager.c
index cbef9226af..5c4db17b0c 100644
--- a/src/lib/elementary/efl_ui_selection_manager.c
+++ b/src/lib/elementary/efl_ui_selection_manager.c
@@ -2723,6 +2723,7 @@ _wl_selection_send(void *data, int type EINA_UNUSED, void 
*event)
    free(data_ret);
 
    close(ev->fd);
+   ecore_wl2_display_flush(ev->display);
    return ECORE_CALLBACK_PASS_ON;
 }
 
@@ -2763,6 +2764,7 @@ _wl_dnd_end(void *data, int type EINA_UNUSED, void *event)
 
    seat_sel->accept = EINA_FALSE;
 
+   ecore_wl2_display_flush(ev->display);
    return ECORE_CALLBACK_PASS_ON;
 }
 
@@ -2976,6 +2978,7 @@ _wl_efl_sel_manager_selection_get(const Efl_Object 
*request, Efl_Ui_Selection_Ma
                                                      _wl_selection_receive, 
sel);
 
             ecore_wl2_offer_receive(offer, 
(char*)sm_wl_convertion[i].translates[j]);
+            ecore_wl2_display_flush(ecore_wl2_input_display_get(input));
             return EINA_TRUE;
          }
      }

-- 


Reply via email to