only attempt to provide wayland drag motion data if drag exists

This commit is contained in:
Mike Blumenkrantz 2015-08-06 19:07:26 -04:00
parent 3dca058dfa
commit 106dfe4e21
1 changed files with 1 additions and 1 deletions

View File

@ -903,7 +903,7 @@ _e_comp_wl_cb_mouse_move(void *d EINA_UNUSED, int t EINA_UNUSED, Ecore_Event_Mou
e_comp->wl_comp_data->ptr.x = wl_fixed_from_int(ev->x);
e_comp->wl_comp_data->ptr.y = wl_fixed_from_int(ev->y);
e_screensaver_notidle();
if (e_comp->wl_comp_data->selection.target)
if (e_comp->wl_comp_data->selection.target && e_comp->wl_comp_data->drag)
{
struct wl_resource *res;
int x, y;