diff --git a/client/Mac/CertificateDialog.m b/client/Mac/CertificateDialog.m index 450b90f65..dc01e10d1 100644 --- a/client/Mac/CertificateDialog.m +++ b/client/Mac/CertificateDialog.m @@ -35,6 +35,7 @@ @synthesize textFingerprint; @synthesize textIssuer; @synthesize textSubject; +@synthesize textMismatch; @synthesize messageLabel; @synthesize serverHostname; @synthesize commonName; diff --git a/client/Mac/CertificateDialog.xib b/client/Mac/CertificateDialog.xib index b9da883be..c154899f1 100644 --- a/client/Mac/CertificateDialog.xib +++ b/client/Mac/CertificateDialog.xib @@ -1,5 +1,5 @@ - + @@ -21,25 +21,24 @@ - + - + - - - - - + + + - - - - - - - - - - - - - - - - - - - - - - - - + + - + - - + + - + - - - - - - - - - - - - - + + - + - - + + - + - - + + - + - - + + - + + + + + + + + + + + + + + + + + + + + + + + + + + + + - - - - - - - - - - - - + diff --git a/client/Mac/MRDPView.m b/client/Mac/MRDPView.m index 24e8c7924..b00c5a9b2 100644 --- a/client/Mac/MRDPView.m +++ b/client/Mac/MRDPView.m @@ -60,7 +60,6 @@ static BOOL mac_begin_paint(rdpContext* context); static BOOL mac_end_paint(rdpContext* context); static BOOL mac_desktop_resize(rdpContext* context); -static void update_activity_cb(freerdp* instance); static void input_activity_cb(freerdp* instance); static DWORD WINAPI mac_client_thread(void* param); @@ -109,35 +108,6 @@ static DWORD WINAPI mac_client_thread(void* param); return 0; } -static DWORD WINAPI mac_client_update_thread(void* param) -{ - int status; - wMessage message; - wMessageQueue* queue; - rdpContext* context = (rdpContext*) param; - status = 1; - queue = freerdp_get_message_queue(context->instance, - FREERDP_UPDATE_MESSAGE_QUEUE); - - while (MessageQueue_Wait(queue)) - { - while (MessageQueue_Peek(queue, &message, TRUE)) - { - status = freerdp_message_queue_process_message(context->instance, - FREERDP_UPDATE_MESSAGE_QUEUE, &message); - - if (!status) - break; - } - - if (!status) - break; - } - - ExitThread(0); - return 0; -} - static DWORD WINAPI mac_client_input_thread(LPVOID param) { int status; @@ -1348,31 +1318,6 @@ BOOL mac_desktop_resize(rdpContext* context) return TRUE; } -void update_activity_cb(freerdp* instance) -{ - int status; - wMessage message; - wMessageQueue* queue; - status = 1; - queue = freerdp_get_message_queue(instance, FREERDP_UPDATE_MESSAGE_QUEUE); - - if (queue) - { - while (MessageQueue_Peek(queue, &message, TRUE)) - { - status = freerdp_message_queue_process_message(instance, - FREERDP_UPDATE_MESSAGE_QUEUE, &message); - - if (!status) - break; - } - } - else - { - WLog_ERR(TAG, "update_activity_cb: No queue!"); - } -} - void input_activity_cb(freerdp* instance) { int status; diff --git a/client/Mac/mf_client.m b/client/Mac/mf_client.m index 8ebd882df..7dc41a7ee 100644 --- a/client/Mac/mf_client.m +++ b/client/Mac/mf_client.m @@ -112,30 +112,6 @@ static void mfreerdp_client_free(freerdp* instance, rdpContext* context) CloseHandle(mfc->stopEvent); } -static void freerdp_client_mouse_event(rdpContext* cfc, DWORD flags, int x, - int y) -{ - UINT32 width, height; - rdpInput* input = cfc->instance->input; - rdpSettings* settings = cfc->instance->settings; - width = settings->DesktopWidth; - height = settings->DesktopHeight; - - if (x < 0) - x = 0; - - if (x >= width) - x = width - 1; - - if (y < 0) - y = 0; - - if (y >= height) - y = height - 1; - - freerdp_input_send_mouse_event(input, flags, x, y); -} - void mf_scale_mouse_event(void* context, rdpInput* input, UINT16 flags, UINT16 x, UINT16 y) {