Revision: 4581
          http://tigervnc.svn.sourceforge.net/tigervnc/?rev=4581&view=rev
Author:   ossman_
Date:     2011-07-12 16:10:16 +0000 (Tue, 12 Jul 2011)

Log Message:
-----------
More consolidation into handleKeyEvent().

Modified Paths:
--------------
    trunk/vncviewer/Viewport.cxx

Modified: trunk/vncviewer/Viewport.cxx
===================================================================
--- trunk/vncviewer/Viewport.cxx        2011-07-12 16:02:30 UTC (rev 4580)
+++ trunk/vncviewer/Viewport.cxx        2011-07-12 16:10:16 UTC (rev 4581)
@@ -387,11 +387,9 @@
   case FL_UNFOCUS:
     // Release all keys that were pressed as that generally makes most
     // sense (e.g. Alt+Tab where we only see the Alt press)
-    for (iter = downKeySym.begin();iter != downKeySym.end();++iter) {
-      vlog.debug("Key released: 0x%04x => 0x%04x", iter->first, iter->second);
-      cc->writer()->keyEvent(iter->second, false);
-    }
-    downKeySym.clear();
+    while (!downKeySym.empty())
+      handleKeyEvent(downKeySym.begin()->first, downKeySym.begin()->first,
+                     "", false);
     return 1;
 
   case FL_KEYDOWN:


This was sent by the SourceForge.net collaborative development platform, the 
world's largest Open Source development site.

------------------------------------------------------------------------------
All of the data generated in your IT infrastructure is seriously valuable.
Why? It contains a definitive record of application performance, security 
threats, fraudulent activity, and more. Splunk takes this data and makes 
sense of it. IT sense. And common sense.
http://p.sf.net/sfu/splunk-d2d-c2
_______________________________________________
Tigervnc-commits mailing list
Tigervnc-commits@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/tigervnc-commits

Reply via email to