if ( !(++mStatusLogCount % mStatusLogInterval) )
{
- oss = "UpdateStatusLogging keepUpdating: " + keepUpdatingStatus ? "true":"false";
+ oss = "UpdateStatusLogging keepUpdating: ";
+ oss += (keepUpdatingStatus ? "true":"false");
if ( keepUpdatingStatus )
{
mXiDeviceId = xiEventMask.deviceid;
// SelectXi2Event
- xiEventMask.mask = (unsigned char*)(calloc( 1, XIMaskLen( XI_LASTEVENT ) ) );
+ Dali::Vector< unsigned char > mask;
+ std::size_t xiMaskLen = XIMaskLen( XI_LASTEVENT );
+ mask.Reserve( xiMaskLen );
+ xiEventMask.mask = mask.Begin();
+
XISetMask( xiEventMask.mask, XI_RawMotion );
- xiEventMask.mask_len = sizeof( xiEventMask.mask );
+ xiEventMask.mask_len = xiMaskLen * sizeof( unsigned char );
int ret = XISelectEvents( display, rootWindow, &xiEventMask, 1 );
if( ret == 0 )
{
DALI_LOG_INFO( gImfLogging, Debug::General, "Failed to Select Events\n" );
}
-
- free( xiEventMask.mask );
}
if( deviceInfo != NULL )