summaryrefslogtreecommitdiffstats
path: root/vncviewer/Viewport.cxx
Commit message (Collapse)AuthorAgeFilesLines
* 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
* 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
* Implement a more robust method to handle the keyboard grab/focus voodoo asPierre Ossman2011-06-141-7/+0
| | | | | | | 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
* Basic framework for more optimised, platform specific, drawing routines.Pierre Ossman2011-06-131-18/+6
| | | | 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
* 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
* Add support for cursors to the new viewer.Pierre Ossman2011-06-081-1/+60
| | | | 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
* Allow resize of the viewport widget.Pierre Ossman2011-06-011-0/+42
| | | | 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-261-6/+11
| | | | git-svn-id: svn://svn.code.sf.net/p/tigervnc/code/trunk@4454 3789f03b-4d11-0410-bbf8-ca57d06f2519
* Implement support for grabbing the keyboard when in full screen mode.Pierre Ossman2011-05-261-0/+7
| | | | 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-241-9/+49
| | | | | | | | 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
* We need to be careful about feeding FLTK @:s when they will be used in aPierre Ossman2011-05-231-2/+6
| | | | | | | label as that is a formatting character. git-svn-id: svn://svn.code.sf.net/p/tigervnc/code/trunk@4440 3789f03b-4d11-0410-bbf8-ca57d06f2519
* This bug has been fixed upstream, so remove the comment.Pierre Ossman2011-05-231-1/+1
| | | | git-svn-id: svn://svn.code.sf.net/p/tigervnc/code/trunk@4439 3789f03b-4d11-0410-bbf8-ca57d06f2519
* Undo accidental commit of premature fullscreen code.Pierre Ossman2011-05-201-2/+0
| | | | git-svn-id: svn://svn.code.sf.net/p/tigervnc/code/trunk@4438 3789f03b-4d11-0410-bbf8-ca57d06f2519
* Add support for multimedia keys.Pierre Ossman2011-05-201-0/+38
| | | | git-svn-id: svn://svn.code.sf.net/p/tigervnc/code/trunk@4437 3789f03b-4d11-0410-bbf8-ca57d06f2519
* Remove no longer used code.Pierre Ossman2011-05-201-4/+0
| | | | git-svn-id: svn://svn.code.sf.net/p/tigervnc/code/trunk@4435 3789f03b-4d11-0410-bbf8-ca57d06f2519
* Better handling of the numpad by looking at FLTK's "original key code".Pierre Ossman2011-05-201-10/+50
| | | | git-svn-id: svn://svn.code.sf.net/p/tigervnc/code/trunk@4434 3789f03b-4d11-0410-bbf8-ca57d06f2519
* Add keyboard debugging output.Pierre Ossman2011-05-191-1/+7
| | | | git-svn-id: svn://svn.code.sf.net/p/tigervnc/code/trunk@4433 3789f03b-4d11-0410-bbf8-ca57d06f2519