Revision: 5027
          http://tigervnc.svn.sourceforge.net/tigervnc/?rev=5027&view=rev
Author:   bphinz
Date:     2013-01-12 14:12:31 +0000 (Sat, 12 Jan 2013)
Log Message:
-----------
Send the focus back to the viewport after leaving the options dialog

Modified Paths:
--------------
    trunk/java/com/tigervnc/vncviewer/OptionsDialog.java

Modified: trunk/java/com/tigervnc/vncviewer/OptionsDialog.java
===================================================================
--- trunk/java/com/tigervnc/vncviewer/OptionsDialog.java        2013-01-12 
01:20:53 UTC (rev 5026)
+++ trunk/java/com/tigervnc/vncviewer/OptionsDialog.java        2013-01-12 
14:12:31 UTC (rev 5027)
@@ -470,6 +470,15 @@
     return c;
   }
 
+  public void endDialog() {
+    super.endDialog();
+    CConn cc = (CConn)cb;
+    if (cc.viewport != null && cc.viewport.isVisible()) {
+      cc.viewport.toFront();
+      cc.viewport.requestFocus();
+    }
+  }
+
   public void actionPerformed(ActionEvent e) {
     Object s = e.getSource();
     if (s instanceof JButton && (JButton)s == okButton) {

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


------------------------------------------------------------------------------
Master Visual Studio, SharePoint, SQL, ASP.NET, C# 2012, HTML5, CSS,
MVC, Windows 8 Apps, JavaScript and much more. Keep your skills current
with LearnDevNow - 3,200 step-by-step video tutorials by Microsoft
MVPs and experts. SALE $99.99 this month only -- learn more at:
http://p.sf.net/sfu/learnmore_122912
_______________________________________________
Tigervnc-commits mailing list
Tigervnc-commits@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/tigervnc-commits

Reply via email to