From 004383a52e5ff561d04d2f77f3cf8fdfa2939740 Mon Sep 17 00:00:00 2001 From: Mike Blumenkrantz Date: Fri, 7 Aug 2015 12:52:44 -0400 Subject: [PATCH] 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 73636d7dd..0b89dd494 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;