summaryrefslogtreecommitdiffstats
path: root/java
Commit message (Collapse)AuthorAgeFilesLines
* TigerVNC 1.4.1v1.4.1Brian P. Hinz2014-12-261-1/+1
|
* TigerVNC 1.4.0v1.4.0Pierre Ossman2014-12-101-1/+1
|
* More Java viewer clipboard handler fixesBrian P. Hinz2014-11-201-4/+9
| | | | | | | | | | | * Override TransferHandler.exportToClipboard method to ensure that serverCutText updates get sent to the system clipboard. This wasn't always happening when relying on the super class' paste() method alone. * Removed some unnecessary setText() statements and one check for whether sending client cut text is enabled. (cherry picked from commit 4f95737b72a516f0ca2ffdd1d299b7469ea90962)
* TigerVNC 1.3.90 (1.4 beta)v1.3.90Pierre Ossman2014-11-191-1/+1
|
* Major rework of Java viewer clipboard handlingBrian P. Hinz2014-11-192-71/+83
| | | | | | | | | | | | | | | | | | | | | | | | | | | * Clipboard dialog UI significantly improved. - Fixes issue where scrollpane size did not track dialog size - Removed unnecessary JPanel - Adjusted default size of dialog to something more appropriate. * Clipboard dialog is now a pure clipboard viewer - Window title now reflects thati fact. - Eliminates problems with concurrency and updating contents. - Clipboard dialog now updates contents if a clipbard transfer occurs and the dialog is visible. - Prevents possible loop condition when text in the scrollpane is selected (ie: selection buffer triggers clipboard updates). * Custom TransferHandler implemented. - Limits the size of outbound clipboard transfers. - On Windows and Linux this implementation does not appear to provoke huge memory spike issue when the transferable is accessed. Unfortunately, the OSX implemenation still suffers from this problem, but that is a JRE issue. For the time being, this at least minimizes the problem. Additionaly, if an OutOfMemoryError is thrown, it's now caught and an error is logged rather than the viewer bailing out. - Vastly simpler implementation - the copy/paste methods inherent in the JTextArea are utilized for interfacing with the system clipboard. This eliminates the need for checking permissions, as well as streamlining the code quite a bit.
* Fixed issue where java viewer in listen mode did not exit properly.Brian P. Hinz2014-11-131-1/+1
| | | | | The viewer count was being incorrectly incremented, preventing the listening viewer from exiting when the window was closed.
* Fix getSockPort methods in java TcpSocketBrian P. Hinz2014-11-132-6/+5
| | | | | | | Although not actually used anywhere, the getSockPort method was actually returning the the remote socket's port number. Also simplified some of the other socket methods.
* Make sure sockets are shutdown in java viewer listen modeBrian P. Hinz2014-11-132-6/+15
| | | | | | The finalizer method may not be strictly necessary but for the sake of consistency shutdown the socket listener the same way we do for a regular TcpSocket.
* Java code cleanupBrian P. Hinz2014-11-133-50/+0
| | | | Deleted some useless comments in java viewer
* More enhancements to java SSLEngineManagerBrian P. Hinz2014-11-041-44/+44
| | | | | | | | | | * Blocking behavior in the read() method was leading to high CPU usage. * GC wasn't purging temporary byte arrays used to transfer data between I/O streams and NIO byte buffers, causing excessive memory usage. * Some optimization of read() behavior to reduce the frequency of blocking operations.
* Major overhaul of SSLEngineManagerBrian P. Hinz2014-11-024-184/+151
| | | | | | | | | | | | | | | | | | | | | | | | The SSLEngineManager was basically an abomination. The work is now done as it should be, with the buffers being fed and the engine deciding when data is consumed or produced. The engine should be much more robust now as well. Additionally, although JRE 7 supports the TLSv1.1 and TLSv1.2 protocols, they are not actually enabled by default. The JSSE reference cites compatibility reasons for this but this doesn't appear to be the case with the TigerVNC server and they will be enabled by default in JRE 8. The regular expression for enabling anonymous DH cipher suites was too narrow and excluded the elliptic curve ciphers, which are now ordered ahead of the ephemeral ciphers by the default security provider. Lastly, increase the size of the buffer in FdOutStream from 8Kb to 16Kb. I'm not sure why FdInStream and FdOutStream were asymmetric to begin with, but 16Kb is the default size for TLS packets and there seems to be now negative effects on plain text connections.
* Embedded applet should not show server dialogBrian P. Hinz2014-06-261-1/+1
|
* r5142 and r5149 borrowed code from the TurboVNC viewer, which has different ↵Brian Hinz2014-01-111-5/+6
| | | | | | Configuration parameter logic. This caused an exception in the usage() method git-svn-id: svn://svn.code.sf.net/p/tigervnc/code/trunk@5156 3789f03b-4d11-0410-bbf8-ca57d06f2519
* r5138 did not completely resolve the problem with clipboard data consuming ↵Brian Hinz2014-01-113-21/+28
| | | | | | too much heap space. Large amounts of clipboard data could still cause the heap size to grow to huge sizes. This patch tries to address the problem by opening a Reader to the underlying IO stream and then reading only up to MaxCutText characters. The garbage collector is invoked manually rather than waiting for the JVM to do it in order to prevent the heap size from growing in between JVM invoked garbage collections. git-svn-id: svn://svn.code.sf.net/p/tigervnc/code/trunk@5155 3789f03b-4d11-0410-bbf8-ca57d06f2519
* Fixes for modality issues & dialog behavior in embedded mode.Brian Hinz2014-01-102-4/+5
| | | | git-svn-id: svn://svn.code.sf.net/p/tigervnc/code/trunk@5154 3789f03b-4d11-0410-bbf8-ca57d06f2519
* Moved OS X setDockIconImage call into VncViewer.setLookAndFeel so that the ↵Brian Hinz2014-01-102-16/+13
| | | | | | dockImage gets set faster. git-svn-id: svn://svn.code.sf.net/p/tigervnc/code/trunk@5153 3789f03b-4d11-0410-bbf8-ca57d06f2519
* Set the dock icon on OS X. Not perfect as it still shows the standard Java ↵Brian Hinz2014-01-041-2/+18
| | | | | | logo for a second or two, but better than nothing git-svn-id: svn://svn.code.sf.net/p/tigervnc/code/trunk@5151 3789f03b-4d11-0410-bbf8-ca57d06f2519
* Release all downKeys when the focus is lost, otherwise the state of the ↵Brian Hinz2014-01-023-24/+7
| | | | | | keyboard will be inconsistent when the focus is regained. Also, the direction of the key release was incorrect in r5147. git-svn-id: svn://svn.code.sf.net/p/tigervnc/code/trunk@5150 3789f03b-4d11-0410-bbf8-ca57d06f2519
* Re-introduces embedded applet mode for the java viewer. On Windows and ↵Brian Hinz2014-01-028-66/+241
| | | | | | Linux, the embedded applet can be dragged from the browser window and detached from the browser process. The mouse gesture for detaching the applet is ALT+drag on Windows and SHIFT+drag on Linux. git-svn-id: svn://svn.code.sf.net/p/tigervnc/code/trunk@5149 3789f03b-4d11-0410-bbf8-ca57d06f2519
* Updated copyright noticesBrian Hinz2013-12-293-3/+5
| | | | git-svn-id: svn://svn.code.sf.net/p/tigervnc/code/trunk@5148 3789f03b-4d11-0410-bbf8-ca57d06f2519
* Another overhaul of the key event handlers. There was a fundamental flaw in ↵Brian Hinz2013-12-294-1092/+1184
| | | | | | the previous implementation due to the fact that java key modifiers associated with a key_pressed or key_released event are reported with respect to each particular event. Thus, for example a key sequence of CTRL press, letter press, CTRL release, letter release never sends the corresponding release for the CTRL+letter down event. Key events are now synchronized on a monitor object to help ensure that the key sequence is preserved. This implementation mirrors the fltk viewer quite closely and, as far as I can tell, is capable of sending all of the same keysyms. git-svn-id: svn://svn.code.sf.net/p/tigervnc/code/trunk@5147 3789f03b-4d11-0410-bbf8-ca57d06f2519
* Added attributes to the Java viewer MANIFEST file in order to conform to ↵Brian Hinz2013-12-023-13/+69
| | | | | | upcoming JRE requirements. Added support for specifying a signing certificate in place of the self-signed certificate. git-svn-id: svn://svn.code.sf.net/p/tigervnc/code/trunk@5145 3789f03b-4d11-0410-bbf8-ca57d06f2519
* Fix regression in java install path introduced in r5143Brian Hinz2013-12-021-4/+4
| | | | git-svn-id: svn://svn.code.sf.net/p/tigervnc/code/trunk@5144 3789f03b-4d11-0410-bbf8-ca57d06f2519
* Fixed incorrect ConnParam initial value in CConn constructor. Thanks to ↵Brian Hinz2013-12-011-1/+1
| | | | | | Pierre for pointing that out. git-svn-id: svn://svn.code.sf.net/p/tigervnc/code/trunk@5143 3789f03b-4d11-0410-bbf8-ca57d06f2519
* Copied Lion fullScreen code from TurboVNC viewer. This is a more robust ↵Brian Hinz2013-12-014-69/+114
| | | | | | implementation and does not suffer from Java bugs 8009911 or 4783448 like the existing code did. CMakeLists file was also updated to be more similar to the TurboVNC cmake file. This wasn't strictly necessary but it simplifies things a bit. git-svn-id: svn://svn.code.sf.net/p/tigervnc/code/trunk@5142 3789f03b-4d11-0410-bbf8-ca57d06f2519
* Fixes a condition where too much data on the local clipboard causes the ↵Brian Hinz2013-11-233-29/+30
| | | | | | client to exceed the max heap size and exit. Since the server will, by default, discard clipboard transfers greater than 256KB anyway, a parameter was added which sets the default max clipboard size that the client will hold to 256KB also. git-svn-id: svn://svn.code.sf.net/p/tigervnc/code/trunk@5138 3789f03b-4d11-0410-bbf8-ca57d06f2519
* Applied DRC's patch to fix broken RRE decoder in java clientBrian Hinz2013-10-031-1/+2
| | | | git-svn-id: svn://svn.code.sf.net/p/tigervnc/code/trunk@5136 3789f03b-4d11-0410-bbf8-ca57d06f2519
* Update more copyrights to 2013. Peter Åstrand2013-06-112-2/+2
| | | | git-svn-id: svn://svn.code.sf.net/p/tigervnc/code/trunk@5122 3789f03b-4d11-0410-bbf8-ca57d06f2519
* Whitespace cleanup onlyBrian Hinz2013-05-1293-639/+639
| | | | git-svn-id: svn://svn.code.sf.net/p/tigervnc/code/trunk@5097 3789f03b-4d11-0410-bbf8-ca57d06f2519
* Bump development version now that 1.3 has been branched off.Pierre Ossman2013-04-251-1/+1
| | | | git-svn-id: svn://svn.code.sf.net/p/tigervnc/code/trunk@5085 3789f03b-4d11-0410-bbf8-ca57d06f2519
* More fixes for key event issues. It seems that on WindowsXP sending the ↵Brian Hinz2013-03-253-42/+174
| | | | | | actual key press/release separately can be mis-interpreted by the server as holding the key down. Using a keyTyped event for all character input ensures that we can send an immediate down/up. It also works around the broken AltGr detection in Java 6. Also added support for more keys (F13-F24, etc.). Some key definitions in java don't have X11 equivalents or I could not be sure so I've left them commented out. git-svn-id: svn://svn.code.sf.net/p/tigervnc/code/trunk@5066 3789f03b-4d11-0410-bbf8-ca57d06f2519
* Need to escape formatting character.Brian Hinz2013-03-061-2/+2
| | | | git-svn-id: svn://svn.code.sf.net/p/tigervnc/code/trunk@5060 3789f03b-4d11-0410-bbf8-ca57d06f2519
* Correct typo in r5058 that set an initial value on key location. Add a some ↵Brian Hinz2013-03-061-4/+3
| | | | | | verbosity to KeyEvent debug statement. git-svn-id: svn://svn.code.sf.net/p/tigervnc/code/trunk@5059 3789f03b-4d11-0410-bbf8-ca57d06f2519
* Fixes some regressions introduced in r5056. Losing window focus caused key ↵Brian Hinz2013-03-063-35/+20
| | | | | | modifiers to be left in an incorrect state. Special handling of AltGr key was being applied in cases where CTRL_L+ALT_L keys were depressed which also caused the modifiers to be left in an incorrect state. Corrected mapping of CTRL+ALT+SHIFT hotkeys to match F8 menu. git-svn-id: svn://svn.code.sf.net/p/tigervnc/code/trunk@5058 3789f03b-4d11-0410-bbf8-ca57d06f2519
* Use JDialog for connection info dialog so that frame icon is set correctly.Brian Hinz2013-03-061-14/+27
| | | | git-svn-id: svn://svn.code.sf.net/p/tigervnc/code/trunk@5057 3789f03b-4d11-0410-bbf8-ca57d06f2519
* Backported a number of fixes/enhancements (mostly related to keymapping) ↵Brian Hinz2013-03-033-189/+396
| | | | | | from TurboVNC viewer. Also cleaned up some whitespace and minor formatting changes. git-svn-id: svn://svn.code.sf.net/p/tigervnc/code/trunk@5056 3789f03b-4d11-0410-bbf8-ca57d06f2519
* Update copyright datesBrian Hinz2013-03-014-4/+4
| | | | git-svn-id: svn://svn.code.sf.net/p/tigervnc/code/trunk@5055 3789f03b-4d11-0410-bbf8-ca57d06f2519
* Replace multiple instantiations of code to retrieve resources (icons, ↵Brian Hinz2013-03-015-34/+18
| | | | | | timestamp) from jar file with statics. git-svn-id: svn://svn.code.sf.net/p/tigervnc/code/trunk@5054 3789f03b-4d11-0410-bbf8-ca57d06f2519
* Make viewport the parent of "Save As" dialog so that the window frame icon ↵Brian Hinz2013-03-011-1/+1
| | | | | | is inherited correctly. git-svn-id: svn://svn.code.sf.net/p/tigervnc/code/trunk@5053 3789f03b-4d11-0410-bbf8-ca57d06f2519
* Using DirectColorModel constructor with an alpha mask other than 0 creates a ↵Brian Hinz2013-03-011-3/+3
| | | | | | ColorMap with Transparency.TRANSLUCENT rather than OPAQUE. This in turn causes rendering between opaque BufferedImages or to the screen to be performed without HW acceleration. git-svn-id: svn://svn.code.sf.net/p/tigervnc/code/trunk@5052 3789f03b-4d11-0410-bbf8-ca57d06f2519
* comboBoxEdited events are fired if the content of the JComboBox is edited ↵Brian Hinz2013-02-221-13/+13
| | | | | | and then the comboBox is de-selected. This causes the connection to be initiated inadvertently sometimes (like when the About... button was pressed. Removed the ItemListener since it didn't serve any purpose, and also deleted the definition of endDialog() since it was the same as the inherited function anyway. git-svn-id: svn://svn.code.sf.net/p/tigervnc/code/trunk@5050 3789f03b-4d11-0410-bbf8-ca57d06f2519
* Fixes yet another case where the viewport background wasn't painted black ↵Brian Hinz2013-02-211-8/+8
| | | | | | when the desktop size was less than the viewport size. Also set both scrollbar policies just as a precaution. git-svn-id: svn://svn.code.sf.net/p/tigervnc/code/trunk@5049 3789f03b-4d11-0410-bbf8-ca57d06f2519
* Notify the server of mouse release events even if they're outside the ↵Brian Hinz2013-02-181-4/+6
| | | | | | desktop area. git-svn-id: svn://svn.code.sf.net/p/tigervnc/code/trunk@5043 3789f03b-4d11-0410-bbf8-ca57d06f2519
* r5037 was not quite right. Both the viewport and scrollbar background colors ↵Brian Hinz2013-02-182-5/+4
| | | | | | were JRE dependent. git-svn-id: svn://svn.code.sf.net/p/tigervnc/code/trunk@5042 3789f03b-4d11-0410-bbf8-ca57d06f2519
* Sending menu key from F8 menu was sending the keycode instead of the keysym.Brian Hinz2013-02-092-24/+40
| | | | git-svn-id: svn://svn.code.sf.net/p/tigervnc/code/trunk@5040 3789f03b-4d11-0410-bbf8-ca57d06f2519
* Fix a regression introduced in r5034 that causes window to be resized ↵Brian Hinz2013-02-091-1/+1
| | | | | | unnecesarily. git-svn-id: svn://svn.code.sf.net/p/tigervnc/code/trunk@5039 3789f03b-4d11-0410-bbf8-ca57d06f2519
* Cosmetic change. The background color of the viewport was not being applied ↵Brian Hinz2013-01-241-1/+1
| | | | | | properly. git-svn-id: svn://svn.code.sf.net/p/tigervnc/code/trunk@5037 3789f03b-4d11-0410-bbf8-ca57d06f2519
* When the desktop size is less than the viewport size, ignore mouse events ↵Brian Hinz2013-01-231-5/+8
| | | | | | that occur in the interstitial area git-svn-id: svn://svn.code.sf.net/p/tigervnc/code/trunk@5035 3789f03b-4d11-0410-bbf8-ca57d06f2519
* Fixes a number of issues related to fullscreen mode. When switching out of ↵Brian Hinz2013-01-234-35/+23
| | | | | | fullscreen mode via the options dialog, setFullScreenWindow was being applied to the old reference, causing the whole screen to be blanked and unresponsive. The checkmark in the F8 menu could sometimes get out of sync with the state of the option. Cursor wasn't always being re-scaled when scale factor was changed. It seems that setCursor can still sometimes be passed a null pointer for the hotspot, so add back in a check that was removed in r5025 git-svn-id: svn://svn.code.sf.net/p/tigervnc/code/trunk@5034 3789f03b-4d11-0410-bbf8-ca57d06f2519
* more fixes for remote cursor rendering. State wasn't always being ↵Brian Hinz2013-01-151-14/+15
| | | | | | initialized correctly. git-svn-id: svn://svn.code.sf.net/p/tigervnc/code/trunk@5029 3789f03b-4d11-0410-bbf8-ca57d06f2519