ELDBUS_ARGS({"i", "type"},
{"i", "x_beg"},{"i", "y_beg"},
{"i", "x_end"}, {"i", "y_end"},
- {"i", "state"}, {"u", "event_time"}),
+ {"i", "state"}, {"u", "event_time"},
+ {"u", "resID"}),
0},
[MOUSE_DOWN_SIGNAL] = {"MouseDown", ELDBUS_ARGS({"i", "deviceId"}), 0},
[MOUSE_UP_SIGNAL] = {"MouseUp", ELDBUS_ARGS({"i", "deviceId"}), 0},
}
//
+ E_Client *client = e_client_under_position_get(desk, gi->x_beg, gi->y_beg, NULL);
+ uint32_t resID = e_pixmap_res_id_get(client->pixmap);
+
eldbus_service_signal_emit(g_context->iface, GESTURE_DETECTED_SIGNAL, (int)gi->type, gi->x_beg, gi->y_beg,
- gi->x_end, gi->y_end, gi->state, gi->event_time);
+ gi->x_end, gi->y_end, gi->state, gi->event_time, resID);
- INFO("GestureDetected %s %d (%d %d %d %d %d %u)", gesture_enum_to_string(gi->type),
- (int)gi->type, gi->x_beg, gi->y_beg, gi->x_end, gi->y_end, gi->state, gi->event_time);
+ INFO("GestureDetected %s %d (%d %d %d %d %d %u) resID: %u", gesture_enum_to_string(gi->type),
+ (int)gi->type, gi->x_beg, gi->y_beg, gi->x_end, gi->y_end, gi->state, gi->event_time, resID);
return 0;
}