aboutsummaryrefslogtreecommitdiffstats
path: root/vncviewer
Commit message (Collapse)AuthorAgeFilesLines
...
* We don't need to force a full refresh on format changes with the new viewerPierre Ossman2011-07-151-2/+0
| | | | | | | as we do not throw away the framebuffer. git-svn-id: svn://svn.code.sf.net/p/tigervnc/code/trunk@4590 3789f03b-4d11-0410-bbf8-ca57d06f2519
* The new viewer stores the framebuffer in a native format, instead ofPierre Ossman2011-07-152-17/+24
| | | | | | | | | converting it on each render like the old one. That means we have to change how we deal with colour maps and make sure it is updated before any changes to the framebuffer. git-svn-id: svn://svn.code.sf.net/p/tigervnc/code/trunk@4589 3789f03b-4d11-0410-bbf8-ca57d06f2519
* Managed to consistently get the colour levels reversed. Fix up everything soPierre Ossman2011-07-142-11/+16
| | | | | | | that it behaves like documented. git-svn-id: svn://svn.code.sf.net/p/tigervnc/code/trunk@4588 3789f03b-4d11-0410-bbf8-ca57d06f2519
* Workaround for Alt behaviour on OS X.Pierre Ossman2011-07-141-0/+17
| | | | git-svn-id: svn://svn.code.sf.net/p/tigervnc/code/trunk@4587 3789f03b-4d11-0410-bbf8-ca57d06f2519
* The password file must be opened in binary mode. Otherwise, you mightPeter Åstrand2011-07-141-1/+1
| | | | | | | | get "bad obfuscated password length" errors on Windows. git-svn-id: svn://svn.code.sf.net/p/tigervnc/code/trunk@4586 3789f03b-4d11-0410-bbf8-ca57d06f2519
* Port over the AltGr hack that the old Windows viewer has. Seems we need thisPierre Ossman2011-07-131-0/+57
| | | | | | | to get sane behaviour when connecting to a Unix desktop. git-svn-id: svn://svn.code.sf.net/p/tigervnc/code/trunk@4584 3789f03b-4d11-0410-bbf8-ca57d06f2519
* Mostly we will catch socket errors when processing incoming data, butPierre Ossman2011-07-121-5/+32
| | | | | | | | sometimes we'll time it so that a write will be the initial offender. Make sure these cases are also properly caught and dealt with. git-svn-id: svn://svn.code.sf.net/p/tigervnc/code/trunk@4583 3789f03b-4d11-0410-bbf8-ca57d06f2519
* Destroy the main UI and connection objects before popping up the fatal errorPierre Ossman2011-07-123-5/+15
| | | | | | | | message. This avoids a lot of problems with recursion and trying to send events over a dead socket. git-svn-id: svn://svn.code.sf.net/p/tigervnc/code/trunk@4582 3789f03b-4d11-0410-bbf8-ca57d06f2519
* More consolidation into handleKeyEvent().Pierre Ossman2011-07-121-5/+3
| | | | git-svn-id: svn://svn.code.sf.net/p/tigervnc/code/trunk@4581 3789f03b-4d11-0410-bbf8-ca57d06f2519
* Simplify things by using the handleKeyEvent() method for the fake pressesPierre Ossman2011-07-121-16/+11
| | | | | | | that can be generated from the popup menu. git-svn-id: svn://svn.code.sf.net/p/tigervnc/code/trunk@4580 3789f03b-4d11-0410-bbf8-ca57d06f2519
* Create a proper header file for the exported functions from vncviewer.cxx.Pierre Ossman2011-07-125-9/+29
| | | | git-svn-id: svn://svn.code.sf.net/p/tigervnc/code/trunk@4579 3789f03b-4d11-0410-bbf8-ca57d06f2519
* The previous fix for eliminating the console window in vncviewer.exe was not ↵DRC2011-07-051-1/+5
| | | | | | portable (it only worked in MinGW, which isn't what most people use.) Use the CMake "WIN32" target property instead. git-svn-id: svn://svn.code.sf.net/p/tigervnc/code/trunk@4576 3789f03b-4d11-0410-bbf8-ca57d06f2519
* Use generic copyright message which refers the user to the complete ↵DRC2011-06-281-3/+1
| | | | | | copyright history in README.txt git-svn-id: svn://svn.code.sf.net/p/tigervnc/code/trunk@4569 3789f03b-4d11-0410-bbf8-ca57d06f2519
* Rename man pages to .1 when installingDRC2011-06-251-1/+1
| | | | git-svn-id: svn://svn.code.sf.net/p/tigervnc/code/trunk@4553 3789f03b-4d11-0410-bbf8-ca57d06f2519
* Install man pages during 'make install' on Unix systemsDRC2011-06-252-1/+228
| | | | git-svn-id: svn://svn.code.sf.net/p/tigervnc/code/trunk@4552 3789f03b-4d11-0410-bbf8-ca57d06f2519
* Fix build issues with Visual C++ (implemented macro version of snprintf + ↵DRC2011-06-247-14/+33
| | | | | | re-ordered headers to ensure that winsock is included ahead of windows.h) git-svn-id: svn://svn.code.sf.net/p/tigervnc/code/trunk@4527 3789f03b-4d11-0410-bbf8-ca57d06f2519
* Call Fl::args() to properly parse the "hidden" arguments that FLTK ↵DRC2011-06-231-13/+16
| | | | | | understands. This has two primary benefits: (1) On X11 systems, you can now override the X display by passing '-display {display}' as the first argument, as is the case for most other X11 apps, and (2) on OS X, this allows the application to run within an application (.app) bundle, because Fl::args() parses the hidden arguments passed to the app by the launcher. git-svn-id: svn://svn.code.sf.net/p/tigervnc/code/trunk@4525 3789f03b-4d11-0410-bbf8-ca57d06f2519
* Call setMenuKey before initContextMenu to avoid uninitialisedPeter Åstrand2011-06-231-2/+1
| | | | | | | | menuKeyCode. git-svn-id: svn://svn.code.sf.net/p/tigervnc/code/trunk@4520 3789f03b-4d11-0410-bbf8-ca57d06f2519
* Turns out that TXImage wasn't just being overly cautious with the custom errorPierre Ossman2011-06-171-0/+24
| | | | | | | | | handler; the shared memory extension is actually this broken so it will return success all the way through even when you're on a remote connection where things cannot possibly work. git-svn-id: svn://svn.code.sf.net/p/tigervnc/code/trunk@4505 3789f03b-4d11-0410-bbf8-ca57d06f2519
* Implement optimised drawing operations for OS X. Didn't see any reduction inPierre Ossman2011-06-174-2/+150
| | | | | | | | CPU usage unfortunately, but at least we're now using the native pixel format of our server which avoids a conversion on the server side. git-svn-id: svn://svn.code.sf.net/p/tigervnc/code/trunk@4504 3789f03b-4d11-0410-bbf8-ca57d06f2519
* Remove unused structure definition.Pierre Ossman2011-06-171-12/+0
| | | | git-svn-id: svn://svn.code.sf.net/p/tigervnc/code/trunk@4503 3789f03b-4d11-0410-bbf8-ca57d06f2519
* Translate the default menu items we get on OS X.Pierre Ossman2011-06-161-0/+8
| | | | git-svn-id: svn://svn.code.sf.net/p/tigervnc/code/trunk@4502 3789f03b-4d11-0410-bbf8-ca57d06f2519
* Implement a more robust method to handle the keyboard grab/focus voodoo asPierre Ossman2011-06-144-21/+58
| | | | | | | it didn't catch some cases on OS X. git-svn-id: svn://svn.code.sf.net/p/tigervnc/code/trunk@4496 3789f03b-4d11-0410-bbf8-ca57d06f2519
* Flushing screen updates after 100 ms turned out to be too aggressive andPierre Ossman2011-06-131-1/+1
| | | | | | | | | just gave an annoying window blinds effect that made things difficult to read. Reduce things to 500 ms, which should be sufficient to tell that the session isn't completely frozen. git-svn-id: svn://svn.code.sf.net/p/tigervnc/code/trunk@4495 3789f03b-4d11-0410-bbf8-ca57d06f2519
* Optimised drawing routines for Win32, based on the old Windows viewer.Pierre Ossman2011-06-134-2/+136
| | | | git-svn-id: svn://svn.code.sf.net/p/tigervnc/code/trunk@4494 3789f03b-4d11-0410-bbf8-ca57d06f2519
* Optimised drawing routines for X11, roughly based on how the old Unix viewerPierre Ossman2011-06-134-1/+240
| | | | | | | did things. git-svn-id: svn://svn.code.sf.net/p/tigervnc/code/trunk@4493 3789f03b-4d11-0410-bbf8-ca57d06f2519
* Basic framework for more optimised, platform specific, drawing routines.Pierre Ossman2011-06-133-19/+66
| | | | git-svn-id: svn://svn.code.sf.net/p/tigervnc/code/trunk@4492 3789f03b-4d11-0410-bbf8-ca57d06f2519
* We can get 0x0 cursor sometimes when the server wants to hide it.Pierre Ossman2011-06-091-24/+31
| | | | git-svn-id: svn://svn.code.sf.net/p/tigervnc/code/trunk@4481 3789f03b-4d11-0410-bbf8-ca57d06f2519
* Copied the dot cursor logic over from the Unix viewer incorrectly.Pierre Ossman2011-06-091-3/+2
| | | | git-svn-id: svn://svn.code.sf.net/p/tigervnc/code/trunk@4480 3789f03b-4d11-0410-bbf8-ca57d06f2519
* Default to fully respecting the remote cursor in order to be closer to a localPierre Ossman2011-06-091-1/+1
| | | | | | | experience. git-svn-id: svn://svn.code.sf.net/p/tigervnc/code/trunk@4479 3789f03b-4d11-0410-bbf8-ca57d06f2519
* We have no cursor initially, and never if the server doesn't support localPierre Ossman2011-06-091-1/+2
| | | | | | | cursors, so make sure we don't pass a NULL pointer to FLTK. git-svn-id: svn://svn.code.sf.net/p/tigervnc/code/trunk@4478 3789f03b-4d11-0410-bbf8-ca57d06f2519
* Implement dot cursor in new viewer.Pierre Ossman2011-06-091-28/+56
| | | | git-svn-id: svn://svn.code.sf.net/p/tigervnc/code/trunk@4477 3789f03b-4d11-0410-bbf8-ca57d06f2519
* The default value of local cursor support is false, so we couldn't justPierre Ossman2011-06-091-0/+4
| | | | | | | remove these lines. git-svn-id: svn://svn.code.sf.net/p/tigervnc/code/trunk@4476 3789f03b-4d11-0410-bbf8-ca57d06f2519
* Bah, not enough coffee today. I had already implemented the pointer ratePierre Ossman2011-06-085-12/+4
| | | | | | | | control, so it can be allowed to stay for now. And there were a bunch of references to the local cursor option. git-svn-id: svn://svn.code.sf.net/p/tigervnc/code/trunk@4475 3789f03b-4d11-0410-bbf8-ca57d06f2519
* Local cursors are a pain to deal with and I doubt it's worth the effort toPierre Ossman2011-06-082-7/+0
| | | | | | | | keep around in the new viewer. Remove that option and the pointer rate limiting (for similar reasons). git-svn-id: svn://svn.code.sf.net/p/tigervnc/code/trunk@4474 3789f03b-4d11-0410-bbf8-ca57d06f2519
* Add support for cursors to the new viewer.Pierre Ossman2011-06-085-14/+78
| | | | git-svn-id: svn://svn.code.sf.net/p/tigervnc/code/trunk@4472 3789f03b-4d11-0410-bbf8-ca57d06f2519
* Make sure the popup menu is reset to the same state each go.Pierre Ossman2011-06-031-0/+4
| | | | git-svn-id: svn://svn.code.sf.net/p/tigervnc/code/trunk@4463 3789f03b-4d11-0410-bbf8-ca57d06f2519
* Handle framebuffer resize requests.Pierre Ossman2011-06-013-28/+89
| | | | git-svn-id: svn://svn.code.sf.net/p/tigervnc/code/trunk@4460 3789f03b-4d11-0410-bbf8-ca57d06f2519
* Allow resize of the viewport widget.Pierre Ossman2011-06-012-0/+46
| | | | git-svn-id: svn://svn.code.sf.net/p/tigervnc/code/trunk@4459 3789f03b-4d11-0410-bbf8-ca57d06f2519
* Fix some misbehaviour with the scroll widget caused by the popup menu.Pierre Ossman2011-06-011-2/+6
| | | | git-svn-id: svn://svn.code.sf.net/p/tigervnc/code/trunk@4458 3789f03b-4d11-0410-bbf8-ca57d06f2519
* Make sure we can handle clipboard data of any size.Pierre Ossman2011-05-262-12/+24
| | | | git-svn-id: svn://svn.code.sf.net/p/tigervnc/code/trunk@4454 3789f03b-4d11-0410-bbf8-ca57d06f2519
* Make it possible to start in full screen mode.Pierre Ossman2011-05-261-0/+5
| | | | git-svn-id: svn://svn.code.sf.net/p/tigervnc/code/trunk@4453 3789f03b-4d11-0410-bbf8-ca57d06f2519
* Toggle full screen based on changes in the options window.Pierre Ossman2011-05-261-0/+5
| | | | git-svn-id: svn://svn.code.sf.net/p/tigervnc/code/trunk@4452 3789f03b-4d11-0410-bbf8-ca57d06f2519
* As we also fall through for FL_FOCUS, we need to do an extra check of thePierre Ossman2011-05-261-1/+2
| | | | | | | event code here. git-svn-id: svn://svn.code.sf.net/p/tigervnc/code/trunk@4451 3789f03b-4d11-0410-bbf8-ca57d06f2519
* Update the full screen setting when the state is toggled by other means.Pierre Ossman2011-05-261-0/+2
| | | | git-svn-id: svn://svn.code.sf.net/p/tigervnc/code/trunk@4450 3789f03b-4d11-0410-bbf8-ca57d06f2519
* Implement support for grabbing the keyboard when in full screen mode.Pierre Ossman2011-05-2612-0/+423
| | | | git-svn-id: svn://svn.code.sf.net/p/tigervnc/code/trunk@4449 3789f03b-4d11-0410-bbf8-ca57d06f2519
* Fix some graphics bugs that occurred on Win32 when using the popup menu.Pierre Ossman2011-05-261-0/+4
| | | | git-svn-id: svn://svn.code.sf.net/p/tigervnc/code/trunk@4448 3789f03b-4d11-0410-bbf8-ca57d06f2519
* Implement full screen support in new vncviewer.Pierre Ossman2011-05-261-1/+13
| | | | git-svn-id: svn://svn.code.sf.net/p/tigervnc/code/trunk@4447 3789f03b-4d11-0410-bbf8-ca57d06f2519
* Handling a full range of keys for the menu key is not as trivial in FLTK asPierre Ossman2011-05-245-9/+90
| | | | | | | | with raw X11, so do what the Windows client did and restrict the available keys to just the function keys. git-svn-id: svn://svn.code.sf.net/p/tigervnc/code/trunk@4444 3789f03b-4d11-0410-bbf8-ca57d06f2519
* Handle horizontal wheel events and not just vertical.Pierre Ossman2011-05-241-3/+8
| | | | git-svn-id: svn://svn.code.sf.net/p/tigervnc/code/trunk@4443 3789f03b-4d11-0410-bbf8-ca57d06f2519