summaryrefslogtreecommitdiffstats
path: root/vncviewer/Viewport.cxx
Commit message (Collapse)AuthorAgeFilesLines
* Make some log messages more sane for translatorsPierre Ossman2014-09-221-4/+8
|
* Update FLTK patches based on feeback from upstreamPierre Ossman2014-09-111-15/+15
|
* Protect the optional IM disabling calls with #ifdef:sPierre Ossman2014-09-111-0/+4
|
* Use different keysyms for left and right alt on OS XPierre Ossman2014-08-221-0/+2
| | | | | The server will get them confused otherwise if they are pressed at the same time.
* Disable input methods when the viewport is focusedPierre Ossman2014-08-221-0/+2
| | | | | | Input methods are way too complex for us to map them to the VNC protocol in any sane manner. Best just to disable them and rely on simple keyboard behaviour when the viewport is active.
* Ignore FLTK events when we have low level hooksPierre Ossman2014-08-221-0/+4
| | | | | Some events can sneak through, e.g. from some virtual keyboards. We need to ignore these to avoid confusion.
* Add OS X keyboard handlerPierre Ossman2014-08-221-1/+34
|
* Add Windows keyboard handlerPierre Ossman2014-08-221-1/+62
|
* Add X11 keyboard handlerPierre Ossman2014-08-221-0/+41
|
* Add xhandler hookPierre Ossman2014-08-221-0/+31
| | | | | Boiler plate code to intercept system events from FLTK so that we can generate proper keyboard messages.
* Attempt to handle Ctrl+keyPierre Ossman2014-08-221-1/+17
| | | | | Hacky attempt to try to figure out the actual key pressed when FLTK is giving us control codes.
* Remove simple keyboard modelPierre Ossman2014-08-221-150/+175
| | | | | Remove the FLTK simple keyboard system and reorganise things in preparation for a more direct approach.
* Use NoSymbol as the error codePierre Ossman2014-07-211-3/+7
| | | | | This is how the X11 API does things, so it's clearer if we use the same principle.
* Use PixelBuffer objects as the interface for encoders and decodersPierre Ossman2014-07-141-106/+8
| | | | | | | This avoid a lot of unnecessary middle men. This also pushes the responsibility for pixel format conversion into the encoders and decoders. The new bufferFromBuffer() is used for direct conversion, rather than PixelTransformer/TransImageGetter.
* Provide a better R/W base PixelBuffer classPierre Ossman2014-07-071-0/+6
| | | | | Clearly separates the read API from the write API and also from actual implementation.
* Get rid of the direct access abuse of FullFramePixelBuffer's dataPierre Ossman2014-07-071-4/+10
|
* Create a proper interface base class for the viewport's framebufferPierre Ossman2014-07-071-7/+25
| | | | | This allows us to gracefully fall back to the FLTK code in case the platform specific code cannot be used.
* Remove full support for colour mapsPierre Ossman2014-07-071-36/+4
| | | | | | | | | Gets rid of a loooot of code and complexity. Colour map clients are still supported through an automatically generated map, but we lose the ability to develop a client or server that uses colour maps internally.
* Remove some premature optimisationPierre Ossman2014-07-071-0/+57
| | | | Reduces header dependencies.
* Clean up header dependencies in the vncviewer directoryPierre Ossman2014-07-071-0/+3
|
* Check that we have a cursor to restorePierre Ossman2014-07-071-1/+1
| | | | | Forgot to check that we actually have a cursor from the server before trying to switch back to it after dismissing the context menu.
* Printing the clipboard data is very annoying as it couldPierre Ossman2013-09-051-1/+1
| | | | | | | | include line breaks, things with the wrong character encoding and god knows what. Just print the size of the data instead. git-svn-id: svn://svn.code.sf.net/p/tigervnc/code/trunk@5133 3789f03b-4d11-0410-bbf8-ca57d06f2519
* The numpad decimal hack is needed on OS X as well.Pierre Ossman2013-05-291-5/+12
| | | | git-svn-id: svn://svn.code.sf.net/p/tigervnc/code/trunk@5115 3789f03b-4d11-0410-bbf8-ca57d06f2519
* Work around Windows poor handling of the numpad decimal key.Pierre Ossman2013-04-161-0/+20
| | | | git-svn-id: svn://svn.code.sf.net/p/tigervnc/code/trunk@5083 3789f03b-4d11-0410-bbf8-ca57d06f2519
* Implement client side multi-head support. Requires a FLTK patched to supportPierre Ossman2012-07-131-1/+1
| | | | | | | | 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
* This code is no longer needed now that we have dynamic resize.Pierre Ossman2012-07-041-4/+1
| | | | git-svn-id: svn://svn.code.sf.net/p/tigervnc/code/trunk@4926 3789f03b-4d11-0410-bbf8-ca57d06f2519
* Add menu entry to have the local window match the size of the remote desktop.Pierre Ossman2012-07-041-1/+14
| | | | | | | This is useful now that we no longer have size restrictions on the window. git-svn-id: svn://svn.code.sf.net/p/tigervnc/code/trunk@4925 3789f03b-4d11-0410-bbf8-ca57d06f2519
* Fix typo.Pierre Ossman2012-07-041-1/+1
| | | | git-svn-id: svn://svn.code.sf.net/p/tigervnc/code/trunk@4923 3789f03b-4d11-0410-bbf8-ca57d06f2519
* Fix unsafe usage of the logging functions.Pierre Ossman2012-04-261-6/+6
| | | | git-svn-id: svn://svn.code.sf.net/p/tigervnc/code/trunk@4905 3789f03b-4d11-0410-bbf8-ca57d06f2519
* Make sure we're paranoid about accidentally feeding a format string.Pierre Ossman2012-04-251-1/+1
| | | | | | | Basic patch by Joachim Falk. Slightly improved before commit. git-svn-id: svn://svn.code.sf.net/p/tigervnc/code/trunk@4900 3789f03b-4d11-0410-bbf8-ca57d06f2519
* Forgot some comments for the mouse cursor workaround.Pierre Ossman2012-01-051-0/+3
| | | | git-svn-id: svn://svn.code.sf.net/p/tigervnc/code/trunk@4832 3789f03b-4d11-0410-bbf8-ca57d06f2519
* Make sure the mouse pointer is always the standard arrow for the popup menu.Pierre Ossman2012-01-051-0/+11
| | | | git-svn-id: svn://svn.code.sf.net/p/tigervnc/code/trunk@4831 3789f03b-4d11-0410-bbf8-ca57d06f2519
* Send a fake pointer event on initial connection so that we get rid of thatPierre Ossman2011-11-101-0/+6
| | | | | | | double mouse pointer problem as the server renders its own copy. git-svn-id: svn://svn.code.sf.net/p/tigervnc/code/trunk@4790 3789f03b-4d11-0410-bbf8-ca57d06f2519
* Send a move event when the pointer leaves the viewport as it makes it muchPierre Ossman2011-11-101-2/+1
| | | | | | | | easier to hit the edge of the screen (which is a popular UI element these days). git-svn-id: svn://svn.code.sf.net/p/tigervnc/code/trunk@4789 3789f03b-4d11-0410-bbf8-ca57d06f2519
* Adding missing initialization of new member variablesHenrik Andersson2011-09-141-1/+1
| | | | | | | | introduced in commit r4670. git-svn-id: svn://svn.code.sf.net/p/tigervnc/code/trunk@4671 3789f03b-4d11-0410-bbf8-ca57d06f2519
* - Changes behaviour of context menu to be reinitializeHenrik Andersson2011-09-141-8/+11
| | | | | | | | | | | | before display with intial states. - Fixes for fullscreen contextmenu item to show the current fullscreen state as it was done in the old viewer. git-svn-id: svn://svn.code.sf.net/p/tigervnc/code/trunk@4670 3789f03b-4d11-0410-bbf8-ca57d06f2519
* Support other keys than F8 as menu keyMartin Koegler2011-09-041-10/+2
| | | | git-svn-id: svn://svn.code.sf.net/p/tigervnc/code/trunk@4665 3789f03b-4d11-0410-bbf8-ca57d06f2519
* Make sure to include config.h in every compilation unit. Otherwise,Peter Åstrand2011-08-231-0/+4
| | | | | | | | | | the necessary defines will only be visible as a side effect of including other headers, leading to problems with things like translations, which will fail in various places. git-svn-id: svn://svn.code.sf.net/p/tigervnc/code/trunk@4646 3789f03b-4d11-0410-bbf8-ca57d06f2519
* Make fullscreen mode work better with some X11 WMs such as Fedora 14Peter Åstrand2011-07-181-1/+4
| | | | | | | | Metacity by removing the size limits before attempting fullscreen. git-svn-id: svn://svn.code.sf.net/p/tigervnc/code/trunk@4599 3789f03b-4d11-0410-bbf8-ca57d06f2519
* Add some extra debug output when the frame buffer changes size.Pierre Ossman2011-07-151-0/+3
| | | | git-svn-id: svn://svn.code.sf.net/p/tigervnc/code/trunk@4594 3789f03b-4d11-0410-bbf8-ca57d06f2519
* Add hack to make the client start properly even in the face of endian issues.Pierre Ossman2011-07-151-0/+20
| | | | | | | | There was a similar hack in the old viewer, so this seems to work well enough in practice. git-svn-id: svn://svn.code.sf.net/p/tigervnc/code/trunk@4593 3789f03b-4d11-0410-bbf8-ca57d06f2519
* Make sure we use the correct pixel format for cursors when in non-native mode.Pierre Ossman2011-07-151-3/+8
| | | | git-svn-id: svn://svn.code.sf.net/p/tigervnc/code/trunk@4592 3789f03b-4d11-0410-bbf8-ca57d06f2519
* The new viewer stores the framebuffer in a native format, instead ofPierre Ossman2011-07-151-14/+14
| | | | | | | | | 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
* 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
* 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
* 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-121-3/+1
| | | | git-svn-id: svn://svn.code.sf.net/p/tigervnc/code/trunk@4579 3789f03b-4d11-0410-bbf8-ca57d06f2519
* Fix build issues with Visual C++ (implemented macro version of snprintf + ↵DRC2011-06-241-3/+7
| | | | | | 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