static BOOL
e_rdp_input_synchronize_event(rdpInput *input, UINT32 flags)
{
- //To do
+ E_Rdp_Peer_Context *peerContext = (E_Rdp_Peer_Context *)input->context;
+ E_Rdp_Output *output = peerContext->rdpBackend->output;
+ E_Rdp_Backend *b = NULL;
+
DBG("e_rdp_input_synchronize_event");
+
+ b = g_rdp_backend;
+ EINA_SAFETY_ON_NULL_RETURN_VAL(b, FALSE);
+ EINA_SAFETY_ON_NULL_RETURN_VAL(b->output, FALSE);
+
+ if (output != b->output)
+ return FALSE;
+
+ if (b->client_count == 0)
+ return TRUE;
+
+ if (!output->frame_timer)
+ {
+ output->refresh_count = 5;
+ output->frame_timer = ecore_timer_add(output->refresh_time, _e_rdp_frame_timer, output);
+ }
+ else
+ output->refresh_count = 5;
+
return TRUE;
}