discomfitor pushed a commit to branch master.

http://git.enlightenment.org/core/enlightenment.git/commit/?id=004383a52e5ff561d04d2f77f3cf8fdfa2939740

commit 004383a52e5ff561d04d2f77f3cf8fdfa2939740
Author: Mike Blumenkrantz <zm...@osg.samsung.com>
Date:   Fri Aug 7 12:52:44 2015 -0400

    block screensaver activation during xwl dnd operations
---
 src/modules/xwayland/dnd.c | 5 ++---
 1 file changed, 2 insertions(+), 3 deletions(-)

diff --git a/src/modules/xwayland/dnd.c b/src/modules/xwayland/dnd.c
index 73636d7..0b89dd4 100644
--- a/src/modules/xwayland/dnd.c
+++ b/src/modules/xwayland/dnd.c
@@ -27,6 +27,7 @@ _xwayland_dnd_finish(void)
    e_comp->wl_comp_data->drag_client = NULL;
    e_comp->wl_comp_data->drag_source = NULL;
    cur_fd = -1;
+   e_screensaver_inhibit_toggle(0);
 }
 
 static void
@@ -148,14 +149,12 @@ _xwl_fixes_selection_notify(void *d EINA_UNUSED, int t 
EINA_UNUSED, Ecore_X_Even
              source->cancelled = _xwayland_cancelled_send;
              source->mime_types = namelist;
              free(names);
+             e_screensaver_inhibit_toggle(1);
           }
         else
           {
              if (e_comp->wl_comp_data->drag)
                e_object_del(E_OBJECT(e_comp->wl_comp_data->drag));
-             ecore_x_window_hide(e_comp->cm_selection);
-             e_comp->wl_comp_data->drag = NULL;
-             e_comp->wl_comp_data->drag_client = NULL;
           }
         e_screensaver_inhibit_toggle(!!ev->owner);
         return ECORE_CALLBACK_RENEW;

-- 


Reply via email to