Ecore_X(cb): Remove extra calls to ecore_x_flush. Move main loop
[framework/uifw/ecore.git] / src / lib / ecore_x / xcb / ecore_xcb_dnd.c
index d5f0b91..6bb6133 100644 (file)
@@ -119,7 +119,7 @@ ecore_x_dnd_send_status(Eina_Bool will_accept, Eina_Bool suppress, Ecore_X_Recta
 
    xcb_send_event(_ecore_xcb_conn, 0, _target->source, 
                   XCB_EVENT_MASK_NO_EVENT, (const char *)&ev);
-   ecore_x_flush();
+//   ecore_x_flush();
 }
 
 EAPI Eina_Bool 
@@ -148,7 +148,7 @@ ecore_x_dnd_drop(void)
 
              xcb_send_event(_ecore_xcb_conn, 0, _source->dest, 
                             XCB_EVENT_MASK_NO_EVENT, (const char *)&ev);
-             ecore_x_flush();
+//             ecore_x_flush();
              _source->state = ECORE_X_DND_SOURCE_DROPPED;
              status = EINA_TRUE;
           }
@@ -160,7 +160,7 @@ ecore_x_dnd_drop(void)
 
              xcb_send_event(_ecore_xcb_conn, 0, _source->dest, 
                             XCB_EVENT_MASK_NO_EVENT, (const char *)&ev);
-             ecore_x_flush();
+//             ecore_x_flush();
              _source->state = ECORE_X_DND_SOURCE_IDLE;
           }
      }
@@ -472,7 +472,7 @@ ecore_x_dnd_send_finished(void)
 
    xcb_send_event(_ecore_xcb_conn, 0, _target->source, 
                   XCB_EVENT_MASK_NO_EVENT, (const char *)&ev);
-   ecore_x_flush();
+//   ecore_x_flush();
    _target->state = ECORE_X_DND_TARGET_IDLE;
 }
 
@@ -531,7 +531,7 @@ _ecore_xcb_dnd_drag(Ecore_X_Window root, int x, int y)
 
         xcb_send_event(_ecore_xcb_conn, 0, _source->dest, 
                        XCB_EVENT_MASK_NO_EVENT, (const char *)&ev);
-        ecore_x_flush();
+//        ecore_x_flush();
         _source->suppress = 0;
      }
 
@@ -570,7 +570,7 @@ _ecore_xcb_dnd_drag(Ecore_X_Window root, int x, int y)
 
              xcb_send_event(_ecore_xcb_conn, 0, win, 
                             XCB_EVENT_MASK_NO_EVENT, (const char *)&ev);
-             ecore_x_flush();
+//             ecore_x_flush();
              _source->await_status = 0;
              _source->will_accept = 0;
           }
@@ -593,7 +593,7 @@ _ecore_xcb_dnd_drag(Ecore_X_Window root, int x, int y)
 
              xcb_send_event(_ecore_xcb_conn, 0, win, 
                             XCB_EVENT_MASK_NO_EVENT, (const char *)&ev);
-             ecore_x_flush();
+//             ecore_x_flush();
              _source->await_status = 1;
           }
      }