vnc: Send regular key event if extended fails

pull/3/head
Andri Yngvason 2020-12-06 19:40:51 +00:00
parent 7c8c29beb2
commit 67676b224e
1 changed files with 2 additions and 1 deletions

View File

@ -222,7 +222,8 @@ void vnc_client_send_keyboard_event(struct vnc_client* self, uint32_t symbol,
if (!qnum) if (!qnum)
qnum = code; qnum = code;
SendExtendedKeyEvent(self->client, symbol, qnum, is_pressed); if (!SendExtendedKeyEvent(self->client, symbol, qnum, is_pressed))
SendKeyEvent(self->client, symbol, is_pressed);
} }
void vnc_client_set_encodings(struct vnc_client* self, const char* encodings) void vnc_client_set_encodings(struct vnc_client* self, const char* encodings)