summaryrefslogtreecommitdiffstats
path: root/java/com/tigervnc/vncviewer/Viewport.java
Commit message (Collapse)AuthorAgeFilesLines
* More fixes for java viewer performance regressionBrian P. Hinz2017-04-171-3/+2
|
* Java client support for cursors with full alphaBrian P. Hinz2017-02-271-40/+10
|
* Complete rewrite of pixel buffer & decoder implementation.Brian P. Hinz2016-12-101-157/+401
| | | | | Adds multi-threading, more robust support for different pixel formats, and several new runtime options.
* Make all viewer parameters static. Viewer instances are isolated from each ↵Brian P. Hinz2016-08-271-14/+12
| | | | other by spawning a completely new process for each viewer, rather than simply starting a new thread. All dialogs were redesigned to better match the look of the native viewer, and also to be more tolerant of sizing differences between platforms.
* Code formatting tweaks (shorter line lengths)Brian P. Hinz2016-03-171-6/+13
|
* Regression fix for Java window sizeBrian P. Hinz2016-02-101-12/+4
| | | | | | | | 6262bac introduced a regression that resulted in a 1 pixel border around the window on some platforms. The underlying issue was actually caused by overriding the getPreferredSize() method in DesktopWindow and returning the scaled width & height, which might not have been set to valid values.
* Fix Viewport initial sizing issue on OS XBrian P. Hinz2015-09-131-1/+3
| | | | | The layout manager on OS X sometimes sets the preferredSize to 0, so only call pack if that's not the case.
* Add multiple monitor spanning feature to java viewerBrian P. Hinz2015-08-201-1/+29
| | | | | | | | | Adds support for spanning multiple monitors in "Extended" mode to the Java viewer. Allows for spanning when maximizing in addition to just full-screen mode. Seems a bit unpredictable on MS Windows 7 (ie: depends on window placement, which screen is set as primary, etc.), but this appears to be the behavior of the OS itself.
* Moved OS X setDockIconImage call into VncViewer.setLookAndFeel so that the ↵Brian Hinz2014-01-101-16/+1
| | | | | | 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-021-1/+1
| | | | | | 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-021-12/+16
| | | | | | 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
* Copied Lion fullScreen code from TurboVNC viewer. This is a more robust ↵Brian Hinz2013-12-011-3/+53
| | | | | | 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
* Whitespace cleanup onlyBrian Hinz2013-05-121-5/+5
| | | | git-svn-id: svn://svn.code.sf.net/p/tigervnc/code/trunk@5097 3789f03b-4d11-0410-bbf8-ca57d06f2519
* Fixes some regressions introduced in r5056. Losing window focus caused key ↵Brian Hinz2013-03-061-0/+3
| | | | | | 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
* Replace multiple instantiations of code to retrieve resources (icons, ↵Brian Hinz2013-03-011-0/+1
| | | | | | timestamp) from jar file with statics. git-svn-id: svn://svn.code.sf.net/p/tigervnc/code/trunk@5054 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
* r5037 was not quite right. Both the viewport and scrollbar background colors ↵Brian Hinz2013-02-181-2/+2
| | | | | | were JRE dependent. git-svn-id: svn://svn.code.sf.net/p/tigervnc/code/trunk@5042 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
* Fixes a number of issues related to fullscreen mode. When switching out of ↵Brian Hinz2013-01-231-10/+7
| | | | | | 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
* Cleanup linter warnings wherever possible and suppress all linter warnings ↵Brian Hinz2012-12-141-1/+1
| | | | | | from Jsch code git-svn-id: svn://svn.code.sf.net/p/tigervnc/code/trunk@5020 3789f03b-4d11-0410-bbf8-ca57d06f2519
* Forces all dialogs except for the clipboard to be modal. Fixes cases where ↵Brian Hinz2012-09-011-1/+23
| | | | | | dialogs are not brought to the front while in fullscreen mode. Corrects a few corner cases where viewer did not exit properly. git-svn-id: svn://svn.code.sf.net/p/tigervnc/code/trunk@4988 3789f03b-4d11-0410-bbf8-ca57d06f2519
* Make scaling factor arguments "FixedRatio" and "Auto" case-insensitiveBrian Hinz2012-08-261-2/+3
| | | | git-svn-id: svn://svn.code.sf.net/p/tigervnc/code/trunk@4966 3789f03b-4d11-0410-bbf8-ca57d06f2519
* Fix AccessControlException caused by using System.exit() in applet mode, and ↵Brian Hinz2012-08-261-1/+1
| | | | | | close viewer properly in several other cases. git-svn-id: svn://svn.code.sf.net/p/tigervnc/code/trunk@4965 3789f03b-4d11-0410-bbf8-ca57d06f2519
* Split the Viewport out from CConn, really should never have been in there to ↵Brian Hinz2012-08-261-0/+112
begin with. git-svn-id: svn://svn.code.sf.net/p/tigervnc/code/trunk@4964 3789f03b-4d11-0410-bbf8-ca57d06f2519