aboutsummaryrefslogtreecommitdiffstats
path: root/src/lib/ecore_wl2/ecore_wl2_input.c
diff options
context:
space:
mode:
authorChris Michael <cp.michael@samsung.com>2015-09-25 10:32:02 -0400
committerChris Michael <cp.michael@samsung.com>2015-12-03 12:02:40 -0500
commit05856a0ebf8699db02d149bcc95314dd429da3d0 (patch)
treef3d4a9a9ec83009c689cf0e2e1d90580411b61de /src/lib/ecore_wl2/ecore_wl2_input.c
parentecore-wl2: Add source file for dnd functions (diff)
downloadefl-05856a0ebf8699db02d149bcc95314dd429da3d0.tar.gz
ecore-wl2: Add calls to dnd functions for drag listener
Signed-off-by: Chris Michael <cp.michael@samsung.com>
Diffstat (limited to 'src/lib/ecore_wl2/ecore_wl2_input.c')
-rw-r--r--src/lib/ecore_wl2/ecore_wl2_input.c24
1 files changed, 13 insertions, 11 deletions
diff --git a/src/lib/ecore_wl2/ecore_wl2_input.c b/src/lib/ecore_wl2/ecore_wl2_input.c
index 2b47435a74..0807efeb55 100644
--- a/src/lib/ecore_wl2/ecore_wl2_input.c
+++ b/src/lib/ecore_wl2/ecore_wl2_input.c
@@ -949,36 +949,37 @@ static const struct wl_touch_listener _touch_listener =
};
static void
-_data_cb_offer(void *data, struct wl_data_device *data_device, struct wl_data_offer *offer)
+_data_cb_offer(void *data, struct wl_data_device *data_device EINA_UNUSED, struct wl_data_offer *offer)
{
Ecore_Wl2_Input *input;
input = data;
if (!input) return;
- /* TODO: dnd add */
+ _ecore_wl2_dnd_add(input, offer);
}
static void
-_data_cb_enter(void *data, struct wl_data_device *data_device, unsigned int timestmap, struct wl_surface *surface, wl_fixed_t x, wl_fixed_t y, struct wl_data_offer *offer)
+_data_cb_enter(void *data, struct wl_data_device *data_device EINA_UNUSED, unsigned int timestamp, struct wl_surface *surface, wl_fixed_t x, wl_fixed_t y, struct wl_data_offer *offer)
{
Ecore_Wl2_Input *input;
input = data;
if (!input) return;
- /* TODO: dnd enter */
+ _ecore_wl2_dnd_enter(input, offer, surface,
+ wl_fixed_to_int(x), wl_fixed_to_int(y), timestamp);
}
static void
-_data_cb_leave(void *data, struct wl_data_device *data_device)
+_data_cb_leave(void *data, struct wl_data_device *data_device EINA_UNUSED)
{
Ecore_Wl2_Input *input;
input = data;
if (!input) return;
- /* TODO: dnd leave */
+ _ecore_wl2_dnd_leave(input);
}
static void
@@ -989,29 +990,30 @@ _data_cb_motion(void *data, struct wl_data_device *data_device, unsigned int tim
input = data;
if (!input) return;
- /* TODO: dnd motion */
+ _ecore_wl2_dnd_motion(input, wl_fixed_to_int(x),
+ wl_fixed_to_int(y), timestamp);
}
static void
-_data_cb_drop(void *data, struct wl_data_device *data_device)
+_data_cb_drop(void *data, struct wl_data_device *data_device EINA_UNUSED)
{
Ecore_Wl2_Input *input;
input = data;
if (!input) return;
- /* TODO: dnd drop */
+ _ecore_wl2_dnd_drop(input);
}
static void
-_data_cb_selection(void *data, struct wl_data_device *data_device, struct wl_data_offer *offer)
+_data_cb_selection(void *data, struct wl_data_device *data_device EINA_UNUSED, struct wl_data_offer *offer)
{
Ecore_Wl2_Input *input;
input = data;
if (!input) return;
- /* TODO: dnd selection */
+ _ecore_wl2_dnd_selection(input, offer);
}
static const struct wl_data_device_listener _data_listener =