aboutsummaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
* adds initial support for loading & saving of both configuration files and ↵Brian Hinz2012-08-2911-383/+599
| | | | | | user preferences git-svn-id: svn://svn.code.sf.net/p/tigervnc/code/trunk@4980 3789f03b-4d11-0410-bbf8-ca57d06f2519
* Add support for X.Org 1.12.XAdam Tkac2012-08-284-17/+227
| | | | git-svn-id: svn://svn.code.sf.net/p/tigervnc/code/trunk@4979 3789f03b-4d11-0410-bbf8-ca57d06f2519
* Add Support for X.Org 1.11.XAdam Tkac2012-08-284-10/+161
| | | | git-svn-id: svn://svn.code.sf.net/p/tigervnc/code/trunk@4978 3789f03b-4d11-0410-bbf8-ca57d06f2519
* The OS X keyboard grabbing code needs to be multi-head aware to functionPierre Ossman2012-08-273-6/+33
| | | | | | | properly. git-svn-id: svn://svn.code.sf.net/p/tigervnc/code/trunk@4977 3789f03b-4d11-0410-bbf8-ca57d06f2519
* Fix silly typo that caused us to mishandle some SetDesktopSize requests.Pierre Ossman2012-08-271-1/+1
| | | | git-svn-id: svn://svn.code.sf.net/p/tigervnc/code/trunk@4976 3789f03b-4d11-0410-bbf8-ca57d06f2519
* Reverted last patch which was a mistake. Peter Åstrand2012-08-271-46/+6
| | | | git-svn-id: svn://svn.code.sf.net/p/tigervnc/code/trunk@4975 3789f03b-4d11-0410-bbf8-ca57d06f2519
* Added a comment about -geometry limitations. Peter Åstrand2012-08-271-0/+4
| | | | git-svn-id: svn://svn.code.sf.net/p/tigervnc/code/trunk@4974 3789f03b-4d11-0410-bbf8-ca57d06f2519
* Update to last patch; forgot break in switch statement. Peter Åstrand2012-08-271-0/+2
| | | | git-svn-id: svn://svn.code.sf.net/p/tigervnc/code/trunk@4973 3789f03b-4d11-0410-bbf8-ca57d06f2519
* Added a standard -geometry command line option. Such an option isPeter Åstrand2012-08-274-7/+81
| | | | | | | | actually already documented on the man page. git-svn-id: svn://svn.code.sf.net/p/tigervnc/code/trunk@4972 3789f03b-4d11-0410-bbf8-ca57d06f2519
* The x509ca and x509crl parameters were being set to the value of the button ↵Brian Hinz2012-08-261-3/+0
| | | | | | text. The parameter values are already set by the jfilechooser called from the options dialog, so no need to set them again anyway. git-svn-id: svn://svn.code.sf.net/p/tigervnc/code/trunk@4971 3789f03b-4d11-0410-bbf8-ca57d06f2519
* Make the window actually occupy the full screen in full-screen mode (without ↵Brian Hinz2012-08-261-4/+15
| | | | | | this, other windows, such as the taskbar on Linux, will display in front of it.). Additional fixes for various full-screen mode issues (Setting FullScreen checkbox in options menu had no effect, null pointer, etc. When fullScreen and scaling options are changed simultaneously in the dialog, collapse the viewport changes into a single operation. There is still a modality issue on OS-X that will be addressed in a later patch. git-svn-id: svn://svn.code.sf.net/p/tigervnc/code/trunk@4970 3789f03b-4d11-0410-bbf8-ca57d06f2519
* Properly handle zero-length argumentsBrian Hinz2012-08-261-0/+3
| | | | git-svn-id: svn://svn.code.sf.net/p/tigervnc/code/trunk@4969 3789f03b-4d11-0410-bbf8-ca57d06f2519
* Make sure we send a full FBUR whenever forceNonincremental=true (which it is ↵Brian Hinz2012-08-261-1/+1
| | | | | | during the initial FBUR.) This specifically fixes an issue whereby a black screen would be displayed when initially connecting to the OS X built-in VNC server. git-svn-id: svn://svn.code.sf.net/p/tigervnc/code/trunk@4968 3789f03b-4d11-0410-bbf8-ca57d06f2519
* "Requesting" is more accurate, because the requested encoding is only used ↵Brian Hinz2012-08-261-1/+1
| | | | | | if the server supports it. git-svn-id: svn://svn.code.sf.net/p/tigervnc/code/trunk@4967 3789f03b-4d11-0410-bbf8-ca57d06f2519
* Make scaling factor arguments "FixedRatio" and "Auto" case-insensitiveBrian Hinz2012-08-263-12/+14
| | | | 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-269-52/+50
| | | | | | 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-263-87/+117
| | | | | | begin with. git-svn-id: svn://svn.code.sf.net/p/tigervnc/code/trunk@4964 3789f03b-4d11-0410-bbf8-ca57d06f2519
* Remove unused classBrian Hinz2012-08-261-27/+0
| | | | git-svn-id: svn://svn.code.sf.net/p/tigervnc/code/trunk@4963 3789f03b-4d11-0410-bbf8-ca57d06f2519
* Refactor the handshake code from first principles to remove code that was ↵Brian Hinz2012-08-261-54/+29
| | | | | | borrowed from Netty, which is released under an incompatible license (Apache v2.) Since our SSLEngineManager class was loosely inspired by, but no code was actually borrowed from, the Oracle JSSE examples, it is my opinion that it was incorrect to attribute copyright to Oracle, so that message has been removed (their examples are released under a BSD-style license, anyhow, so it's a non-issue.) git-svn-id: svn://svn.code.sf.net/p/tigervnc/code/trunk@4962 3789f03b-4d11-0410-bbf8-ca57d06f2519
* Remove the AWTPixelBuffer class. After switching to using rasters in ↵Brian Hinz2012-08-262-104/+1
| | | | | | BIPixelBuffer, we can no longer find a case in which AWTPixelBuffer performs faster. git-svn-id: svn://svn.code.sf.net/p/tigervnc/code/trunk@4961 3789f03b-4d11-0410-bbf8-ca57d06f2519
* Significantly improve performance by eliminating the intermediary ↵Brian Hinz2012-08-261-19/+6
| | | | | | MemoryImageSource and instead directly modifying the pixels in the BufferedImage. Supposedly, doing this causes the BufferedImage to become unmanaged. At one time, unmanaged images weren't hardware-accelerated on some platforms, but that doesn't seem to be the case with Java 1.5 and later. git-svn-id: svn://svn.code.sf.net/p/tigervnc/code/trunk@4960 3789f03b-4d11-0410-bbf8-ca57d06f2519
* Change name of menu key class to be consistent with Java style guidelines.Brian Hinz2012-08-265-24/+31
| | | | git-svn-id: svn://svn.code.sf.net/p/tigervnc/code/trunk@4959 3789f03b-4d11-0410-bbf8-ca57d06f2519
* X11 window managers are very buggy when it comes to having a window startPierre Ossman2012-08-232-18/+66
| | | | | | | | | in full screen mode. So we'll resort to creating a normal window, and then switching to full screen once it is mapped. Unfortunately it means we need to handle delaying some resize handling. git-svn-id: svn://svn.code.sf.net/p/tigervnc/code/trunk@4958 3789f03b-4d11-0410-bbf8-ca57d06f2519
* Avoid doing a lot of resize related things if we're not actually resizing.Pierre Ossman2012-08-231-15/+24
| | | | git-svn-id: svn://svn.code.sf.net/p/tigervnc/code/trunk@4957 3789f03b-4d11-0410-bbf8-ca57d06f2519
* A CGImage is read-only, but it just happened to work anyway. Until 10.8Pierre Ossman2012-08-172-13/+11
| | | | | | | that is. Do it the documented way by having a CGBitmapContext instead. git-svn-id: svn://svn.code.sf.net/p/tigervnc/code/trunk@4956 3789f03b-4d11-0410-bbf8-ca57d06f2519
* The maximise functionality does not rely on the fullscreen patches.Pierre Ossman2012-08-171-1/+1
| | | | git-svn-id: svn://svn.code.sf.net/p/tigervnc/code/trunk@4955 3789f03b-4d11-0410-bbf8-ca57d06f2519
* Clarify the FLTK requirement.Pierre Ossman2012-08-171-5/+5
| | | | git-svn-id: svn://svn.code.sf.net/p/tigervnc/code/trunk@4954 3789f03b-4d11-0410-bbf8-ca57d06f2519
* Add missing blank line.Pierre Ossman2012-08-171-0/+1
| | | | git-svn-id: svn://svn.code.sf.net/p/tigervnc/code/trunk@4953 3789f03b-4d11-0410-bbf8-ca57d06f2519
* Ignore more generated filesPeter Åstrand2012-08-090-0/+0
| | | | git-svn-id: svn://svn.code.sf.net/p/tigervnc/code/trunk@4952 3789f03b-4d11-0410-bbf8-ca57d06f2519
* Remove the in-tree versin of FLTK. Maintaining such a copy is way tooPeter Åstrand2012-08-09436-148219/+59
| | | | | | | | | much work, and it's constantly out of sync. Let's document what the main developers (ie Cendio) are using instead. git-svn-id: svn://svn.code.sf.net/p/tigervnc/code/trunk@4951 3789f03b-4d11-0410-bbf8-ca57d06f2519
* Make it possible to load and save configuration files. Also, whenPeter Åstrand2012-08-085-25/+756
| | | | | | | | | connecting, the options are saved as default settings. This patch fixes SF bugs 3481470 and 3499216. git-svn-id: svn://svn.code.sf.net/p/tigervnc/code/trunk@4950 3789f03b-4d11-0410-bbf8-ca57d06f2519
* Added new option "-Maximize", for maximizing the window at startup.Peter Åstrand2012-08-015-0/+52
| | | | git-svn-id: svn://svn.code.sf.net/p/tigervnc/code/trunk@4949 3789f03b-4d11-0410-bbf8-ca57d06f2519
* Changes to allow compiling on JDK7Brian Hinz2012-07-225-15/+46
| | | | git-svn-id: svn://svn.code.sf.net/p/tigervnc/code/trunk@4948 3789f03b-4d11-0410-bbf8-ca57d06f2519
* We can end up with no screens in some cases. Make sure we at least have aPierre Ossman2012-07-201-0/+5
| | | | | | | dummy one when that happens. git-svn-id: svn://svn.code.sf.net/p/tigervnc/code/trunk@4947 3789f03b-4d11-0410-bbf8-ca57d06f2519
* Screen layout is relative our viewport, not the local machine's 0,0.Pierre Ossman2012-07-201-6/+12
| | | | git-svn-id: svn://svn.code.sf.net/p/tigervnc/code/trunk@4946 3789f03b-4d11-0410-bbf8-ca57d06f2519
* Make sure we filter out any screens that aren't fully inside the newPierre Ossman2012-07-201-0/+8
| | | | | | | framebuffer. git-svn-id: svn://svn.code.sf.net/p/tigervnc/code/trunk@4945 3789f03b-4d11-0410-bbf8-ca57d06f2519
* Remove some debug output that wasn't supposed to be here.Pierre Ossman2012-07-201-1/+0
| | | | git-svn-id: svn://svn.code.sf.net/p/tigervnc/code/trunk@4944 3789f03b-4d11-0410-bbf8-ca57d06f2519
* We were not handling the "sync next" fence properly as we sent the responsePierre Ossman2012-07-202-6/+10
| | | | | | | | | right after we got the request (instead of waiting for the next command). This created a race where we could lose pixel format sync between the client and the server. git-svn-id: svn://svn.code.sf.net/p/tigervnc/code/trunk@4943 3789f03b-4d11-0410-bbf8-ca57d06f2519
* Also check for negative encodings, in case the server is throwing unexpectedPierre Ossman2012-07-192-3/+3
| | | | | | | garbage at us. git-svn-id: svn://svn.code.sf.net/p/tigervnc/code/trunk@4942 3789f03b-4d11-0410-bbf8-ca57d06f2519
* Implicit drawing operations (like window borders) are done by accessingPierre Ossman2012-07-191-9/+26
| | | | | | | | | | the screen pixmap directly. That means that hooking windows is insufficient. The code now assumes that the drawable is a visible window, or the screen pixmap (IOW, that all coordinates are screen relative). Had to restructure some code that only worked on windows to get this working. git-svn-id: svn://svn.code.sf.net/p/tigervnc/code/trunk@4941 3789f03b-4d11-0410-bbf8-ca57d06f2519
* Fix improper check of errors when getting a suitable RandR mode.Pierre Ossman2012-07-181-2/+2
| | | | git-svn-id: svn://svn.code.sf.net/p/tigervnc/code/trunk@4940 3789f03b-4d11-0410-bbf8-ca57d06f2519
* We need to be able to handle outputs without any CRTC connected as well.Pierre Ossman2012-07-181-10/+56
| | | | | | | This is generally the state disabled outputs are in. git-svn-id: svn://svn.code.sf.net/p/tigervnc/code/trunk@4939 3789f03b-4d11-0410-bbf8-ca57d06f2519
* Forgot to initialise the iterator index properly.Pierre Ossman2012-07-181-1/+1
| | | | git-svn-id: svn://svn.code.sf.net/p/tigervnc/code/trunk@4938 3789f03b-4d11-0410-bbf8-ca57d06f2519
* We need to manually update the RandR timestamp, as it is normally set inPierre Ossman2012-07-171-0/+7
| | | | | | | the X11 request handlers. git-svn-id: svn://svn.code.sf.net/p/tigervnc/code/trunk@4937 3789f03b-4d11-0410-bbf8-ca57d06f2519
* The internal API for RRCrtcNotify() changed in Xorg 1.6+, so make sure thingsPierre Ossman2012-07-171-2/+19
| | | | | | | work on those versions as well. git-svn-id: svn://svn.code.sf.net/p/tigervnc/code/trunk@4936 3789f03b-4d11-0410-bbf8-ca57d06f2519
* Implement client side multi-head support. Requires a FLTK patched to supportPierre Ossman2012-07-139-21/+167
| | | | | | | | fullscreen over multiple monitors. Will properly report screen configuration to the server, provided the server supports it. git-svn-id: svn://svn.code.sf.net/p/tigervnc/code/trunk@4935 3789f03b-4d11-0410-bbf8-ca57d06f2519
* ScreenSet references rdr types, so we need to make sure those are defined.Pierre Ossman2012-07-131-0/+1
| | | | git-svn-id: svn://svn.code.sf.net/p/tigervnc/code/trunk@4934 3789f03b-4d11-0410-bbf8-ca57d06f2519
* Add back support for letting the client reconfigure the screen, this timePierre Ossman2012-07-134-34/+284
| | | | | | | | | with all the RandR 1.2 multi-head goodness. Tested with Xvnc, but should also work with libvnc.so, although it will only work for simpler cases there. git-svn-id: svn://svn.code.sf.net/p/tigervnc/code/trunk@4933 3789f03b-4d11-0410-bbf8-ca57d06f2519
* Track outputs instead of CRTCs, as those better match the screen conceptPierre Ossman2012-07-122-15/+17
| | | | | | | in RFB. git-svn-id: svn://svn.code.sf.net/p/tigervnc/code/trunk@4932 3789f03b-4d11-0410-bbf8-ca57d06f2519
* Redo the RandR code in Xvnc/libvnc to use the modern 1.2 API. The oldPierre Ossman2012-07-125-165/+366
| | | | | | | | | | | stuff was a bit buggy, and it didn't really allow us to move forward. This commit temporarily removes the ability for the client to resize the session. It will be readded for Xvnc in a later commit. libvnc will be without that functionality for now, as it is very difficult to get right there. git-svn-id: svn://svn.code.sf.net/p/tigervnc/code/trunk@4931 3789f03b-4d11-0410-bbf8-ca57d06f2519