discomfitor pushed a commit to branch master.

commit 245c308bb345a52b28c3234e87383e9871f152b1
Author: Mike Blumenkrantz <[email protected]>
Date:   Wed Jun 12 13:18:03 2013 +0100

    after 4 hours of dndebugging gtk apps, I have solved all external dnd 
issues.
---
 src/bin/e_dnd.c | 7 ++++---
 1 file changed, 4 insertions(+), 3 deletions(-)

diff --git a/src/bin/e_dnd.c b/src/bin/e_dnd.c
index c8c06b0..db55982 100644
--- a/src/bin/e_dnd.c
+++ b/src/bin/e_dnd.c
@@ -964,7 +964,8 @@ _e_drag_end(int x, int y)
      }
 
    dropped = 0;
-
+   ecore_x_window_free(_drag_win);
+   _drag_win = 0;
    if (!_drag_current->data)
      {
         /* Just leave */
@@ -1081,8 +1082,6 @@ _e_drag_free(E_Drag *drag)
         E_Drop_Handler *h;
 
         e_grabinput_release(_drag_win, _drag_win);
-        ecore_x_window_free(_drag_win);
-        _drag_win = 0;
         _drag_win_root = 0;
 
         leave_ev.x = 0;
@@ -1304,6 +1303,8 @@ _e_dnd_cb_event_dnd_finished(void *data __UNUSED__, int 
type __UNUSED__, void *e
    if (!ev->completed) return ECORE_CALLBACK_PASS_ON;
  */
 
+   if (_drag_win) ecore_x_window_free(_drag_win);
+   _drag_win = 0;
    return ECORE_CALLBACK_PASS_ON;
 }
 

-- 

------------------------------------------------------------------------------
This SF.net email is sponsored by Windows:

Build for Windows Store.

http://p.sf.net/sfu/windows-dev2dev

Reply via email to