|
|
@@ -118,6 +118,7 @@ Viewport::Viewport(int w, int h, const rfb::PixelFormat& serverPF, CConn* cc_) |
|
|
|
#ifdef WIN32 |
|
|
|
altGrArmed(false), |
|
|
|
#endif |
|
|
|
firstLEDState(true), |
|
|
|
pendingServerCutText(NULL), pendingClientCutText(NULL), |
|
|
|
menuCtrlKey(false), menuAltKey(false), cursor(NULL) |
|
|
|
{ |
|
|
@@ -321,6 +322,15 @@ void Viewport::setLEDState(unsigned int state) |
|
|
|
{ |
|
|
|
vlog.debug("Got server LED state: 0x%08x", state); |
|
|
|
|
|
|
|
// The first message is just considered to be the server announcing |
|
|
|
// support for this extension, so start by pushing our state to the |
|
|
|
// remote end to get things in sync |
|
|
|
if (firstLEDState) { |
|
|
|
firstLEDState = false; |
|
|
|
pushLEDState(); |
|
|
|
return; |
|
|
|
} |
|
|
|
|
|
|
|
if (!hasFocus()) |
|
|
|
return; |
|
|
|
|