Switch pointer gadget to non-blocking
Writes to the pointer gadget can hang if the host has no cursor. Using
non-blocking mode prevents this hanging. Also prevent repeated error
logging due to pointer write failures in this case.
Change-Id: I9c423a4a0af4b37a69ae20650b86a6266e5b4b41
Signed-off-by: Eddie James <eajames@linux.ibm.com>
diff --git a/ikvm_input.hpp b/ikvm_input.hpp
index f7413a4..394591c 100644
--- a/ikvm_input.hpp
+++ b/ikvm_input.hpp
@@ -85,6 +85,8 @@
*/
static uint8_t keyToScancode(rfbKeySym key);
+ /* @brief Indicates whether or not a pointer report error has occurred */
+ bool pointerError;
/* @brief Indicates whether or not to send a keyboard report */
bool sendKeyboard;
/* @brief Indicates whether or not to send a pointer report */