diff options
author | Brian Hinz <bphinz@users.sourceforge.net> | 2013-01-12 14:12:31 +0000 |
---|---|---|
committer | Brian Hinz <bphinz@users.sourceforge.net> | 2013-01-12 14:12:31 +0000 |
commit | cc01b7060d2e01c860869938d7958f29b7e2d854 (patch) | |
tree | 510c25eee5ef121ac260d400a8cef61c76a41605 /java/com/tigervnc | |
parent | 6edad6a5ad3909136e2cd9628dffb913e3055d1b (diff) | |
download | tigervnc-cc01b7060d2e01c860869938d7958f29b7e2d854.tar.gz tigervnc-cc01b7060d2e01c860869938d7958f29b7e2d854.zip |
Send the focus back to the viewport after leaving the options dialog
git-svn-id: svn://svn.code.sf.net/p/tigervnc/code/trunk@5027 3789f03b-4d11-0410-bbf8-ca57d06f2519
Diffstat (limited to 'java/com/tigervnc')
-rw-r--r-- | java/com/tigervnc/vncviewer/OptionsDialog.java | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/java/com/tigervnc/vncviewer/OptionsDialog.java b/java/com/tigervnc/vncviewer/OptionsDialog.java index cd213410..e78563e6 100644 --- a/java/com/tigervnc/vncviewer/OptionsDialog.java +++ b/java/com/tigervnc/vncviewer/OptionsDialog.java @@ -470,6 +470,15 @@ class OptionsDialog extends Dialog implements 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) { |