aboutsummaryrefslogtreecommitdiffstats
path: root/unix/xserver/hw/vnc/Input.cc
Commit message (Collapse)AuthorAgeFilesLines
* Fix pointer initialization to prevent NULL events.Brian P. Hinz2014-09-291-4/+4
| | | | Moved call to initEventq() into InitInputDevice() to prevent NULL events from being passed in. The surrounding IFDEF explains why Red Hat BZ bug #820443 just went away, EL6 bumped the version of xorg-x11-server-source to 1.13 at EL6.4.
* Updated to build against xorg-x11-server 1.16.0.Tim Waugh2014-09-031-1/+1
|
* Update the cursor position using GetSpritePosition().Tim Waugh2014-07-141-1/+9
| | | | | | | The module needs to correctly track the mouse position by querying the current X cursor position in InputDevice::getPointerPos(). Fixes: https://sourceforge.net/p/tigervnc/bug-tracker/152/
* Handle closing of input devicesPierre Ossman2014-07-141-5/+5
| | | | | | The core can decide to close an input device (e.g. during a server reset). Make sure we respect this by forgetting about the device and recreating it again later.
* Make InputDevice into a singletonPierre Ossman2014-07-141-1/+6
| | | | | Xorg input devices are global so it doesn't make sense that we have one InputDevice object per XserverDesktop.
* Move all functions that InputDevice uses into the classPierre Ossman2014-07-141-4/+2
|
* Let XserverDesktop handle syncing cursor positionPierre Ossman2014-07-141-8/+4
| | | | | This makes InputDevice cleaner and just a glue layer for Xorg input devices.
* We need to set a label on all pointer buttonsPierre Ossman2014-07-111-0/+2
|
* Some applications (e.g. wine and rdesktop) tend to misbehavePierre Ossman2013-05-301-0/+49
| | | | | | | | | | when we use fake shift to get different symbols on the numpad. So avoid using fake shifts on NumLock related keys and hope that other applications won't get upset by getting the non-numpad keysym counterparts. git-svn-id: svn://svn.code.sf.net/p/tigervnc/code/trunk@5119 3789f03b-4d11-0410-bbf8-ca57d06f2519
* Simplify the lookup of alternative keysyms.Pierre Ossman2013-05-301-12/+12
| | | | git-svn-id: svn://svn.code.sf.net/p/tigervnc/code/trunk@5118 3789f03b-4d11-0410-bbf8-ca57d06f2519
* Relax the requirements on addKeysym() so that it can add newPierre Ossman2013-05-231-1/+10
| | | | | | | entries that still require modifying the current modifier state. git-svn-id: svn://svn.code.sf.net/p/tigervnc/code/trunk@5104 3789f03b-4d11-0410-bbf8-ca57d06f2519
* Shifted Tab is a generic VNC problem and not specific to justPierre Ossman2013-04-161-0/+16
| | | | | | | Core keyboard. Move handling of it to the central code. git-svn-id: svn://svn.code.sf.net/p/tigervnc/code/trunk@5082 3789f03b-4d11-0410-bbf8-ca57d06f2519
* Embarrasing copy/paste error. Fixes fake AltGr presses.Pierre Ossman2013-04-151-1/+1
| | | | git-svn-id: svn://svn.code.sf.net/p/tigervnc/code/trunk@5081 3789f03b-4d11-0410-bbf8-ca57d06f2519
* Add some missing headers. It is not really ok to include Xutil.hPierre Ossman2013-04-111-0/+1
| | | | | | | without first including Xlib.h. git-svn-id: svn://svn.code.sf.net/p/tigervnc/code/trunk@5078 3789f03b-4d11-0410-bbf8-ca57d06f2519
* Move keyboardProc() so we have all the init stuff in one place.Pierre Ossman2013-04-091-47/+41
| | | | git-svn-id: svn://svn.code.sf.net/p/tigervnc/code/trunk@5076 3789f03b-4d11-0410-bbf8-ca57d06f2519
* Major rewrite of the keyboard code. The old code was too focused onPierre Ossman2013-04-091-703/+113
| | | | | | | | | the old core X11 keyboards. The new code has an abstract common section, and two different backends for core and XKB. Core keyboards should be unaffected, but XKB support should be much better with this approach. git-svn-id: svn://svn.code.sf.net/p/tigervnc/code/trunk@5075 3789f03b-4d11-0410-bbf8-ca57d06f2519
* Copy error. Should have been a tab rather than spaces here.Pierre Ossman2013-04-091-1/+1
| | | | git-svn-id: svn://svn.code.sf.net/p/tigervnc/code/trunk@5074 3789f03b-4d11-0410-bbf8-ca57d06f2519
* Mode switch and level 3 shift are used interchangably these days.Pierre Ossman2013-04-091-0/+1
| | | | git-svn-id: svn://svn.code.sf.net/p/tigervnc/code/trunk@5073 3789f03b-4d11-0410-bbf8-ca57d06f2519
* Make sure we release the same key we previously pressed for aPierre Ossman2013-04-091-1/+40
| | | | | | | given keysym. git-svn-id: svn://svn.code.sf.net/p/tigervnc/code/trunk@5072 3789f03b-4d11-0410-bbf8-ca57d06f2519
* Handle init of old and new keyboards the same way.Pierre Ossman2013-04-091-20/+27
| | | | git-svn-id: svn://svn.code.sf.net/p/tigervnc/code/trunk@5071 3789f03b-4d11-0410-bbf8-ca57d06f2519
* We have an object to store stuff in, so don't use a globalPierre Ossman2013-04-091-4/+3
| | | | | | | variable. git-svn-id: svn://svn.code.sf.net/p/tigervnc/code/trunk@5070 3789f03b-4d11-0410-bbf8-ca57d06f2519
* Make sure InputDevice::InitInputDevice() gets called early inPierre Ossman2013-04-091-7/+1
| | | | | | | | the startup process so our devices are visible and available right away. git-svn-id: svn://svn.code.sf.net/p/tigervnc/code/trunk@5069 3789f03b-4d11-0410-bbf8-ca57d06f2519
* Fix build errors with XORG < 111: I assume that the last NULL argumentPeter Åstrand2012-08-291-1/+1
| | | | | | | | to GetKeyboardEvents was a typo... git-svn-id: svn://svn.code.sf.net/p/tigervnc/code/trunk@4982 3789f03b-4d11-0410-bbf8-ca57d06f2519
* Add Support for X.Org 1.11.XAdam Tkac2012-08-281-10/+51
| | | | git-svn-id: svn://svn.code.sf.net/p/tigervnc/code/trunk@4978 3789f03b-4d11-0410-bbf8-ca57d06f2519
* Reimplement the deferred update handling, this time in a more robust andPierre Ossman2011-11-081-1/+0
| | | | | | | well-behaved manner. git-svn-id: svn://svn.code.sf.net/p/tigervnc/code/trunk@4784 3789f03b-4d11-0410-bbf8-ca57d06f2519
* Allow buttons 6 and 7 to be used as well so that we can get horizontalPierre Ossman2011-05-241-1/+1
| | | | | | | wheel events. git-svn-id: svn://svn.code.sf.net/p/tigervnc/code/trunk@4442 3789f03b-4d11-0410-bbf8-ca57d06f2519
* [Bugfix] Handle situation when viewer doesn't send the key release event well.Adam Tkac2011-01-171-0/+10
| | | | | | | | Happens for example with TightVNC 1.3.10 viewer during following sequence: "press shift" + "press a" + "release shift" + "release a" git-svn-id: svn://svn.code.sf.net/p/tigervnc/code/trunk@4237 3789f03b-4d11-0410-bbf8-ca57d06f2519
* [Bugfix] Fix "Alt key gets stuck in Xvnc" issue.Adam Tkac2011-01-171-2/+68
| | | | | | | | Reference: http://www.mail-archive.com/tigervnc-users@lists.sourceforge.net/msg00196.html git-svn-id: svn://svn.code.sf.net/p/tigervnc/code/trunk@4236 3789f03b-4d11-0410-bbf8-ca57d06f2519
* [Bugfix] Disable server-side key autorepeating.Adam Tkac2011-01-171-0/+15
| | | | git-svn-id: svn://svn.code.sf.net/p/tigervnc/code/trunk@4235 3789f03b-4d11-0410-bbf8-ca57d06f2519
* [Bugfix] Handle situation when keyboard has no modifiers in Input.cc well.Adam Tkac2010-12-081-38/+61
| | | | git-svn-id: svn://svn.code.sf.net/p/tigervnc/code/trunk@4225 3789f03b-4d11-0410-bbf8-ca57d06f2519
* [Bugfix] Fix various compilation warnings.Adam Tkac2010-12-081-3/+7
| | | | git-svn-id: svn://svn.code.sf.net/p/tigervnc/code/trunk@4224 3789f03b-4d11-0410-bbf8-ca57d06f2519
* [Bugfix] Use malloc/free instead of Xalloc/Xfree when built against X.Org ↵Adam Tkac2010-12-081-0/+4
| | | | | | 1.10 and newer. git-svn-id: svn://svn.code.sf.net/p/tigervnc/code/trunk@4223 3789f03b-4d11-0410-bbf8-ca57d06f2519
* [Development] Add support for X.Org 1.10Adam Tkac2010-12-081-0/+21
| | | | git-svn-id: svn://svn.code.sf.net/p/tigervnc/code/trunk@4221 3789f03b-4d11-0410-bbf8-ca57d06f2519
* [Bugfix] Fix memory leak in InputDevice::keyEvent function.Adam Tkac2010-07-211-0/+2
| | | | git-svn-id: svn://svn.code.sf.net/p/tigervnc/code/trunk@4112 3789f03b-4d11-0410-bbf8-ca57d06f2519
* Extend the default keyboard table with the Windows keys so that they canPierre Ossman2010-06-151-0/+4
| | | | | | | be used in the default modifier mapping. git-svn-id: svn://svn.code.sf.net/p/tigervnc/code/trunk@4067 3789f03b-4d11-0410-bbf8-ca57d06f2519
* Map up the rest of the standard modifiers (if available).Pierre Ossman2010-06-151-0/+14
| | | | git-svn-id: svn://svn.code.sf.net/p/tigervnc/code/trunk@4066 3789f03b-4d11-0410-bbf8-ca57d06f2519
* Use a switch statement instead of a series of if:s for setting up the modmapPierre Ossman2010-06-151-8/+14
| | | | | | | as the readability was quite low. git-svn-id: svn://svn.code.sf.net/p/tigervnc/code/trunk@4065 3789f03b-4d11-0410-bbf8-ca57d06f2519
* Reinstate Caps Lock in the default keyboard map. It's not documented whyPierre Ossman2010-06-141-1/+1
| | | | | | | | it's removed, and patched servers with it on have been running fine for years. git-svn-id: svn://svn.code.sf.net/p/tigervnc/code/trunk@4064 3789f03b-4d11-0410-bbf8-ca57d06f2519
* XConvertCase() in xorg-xserver 1.5 is simply a macro that maps to ↵DRC2010-05-201-4/+0
| | | | | | XkbConvertCase(), so not only if this #ifdef unnecessary, but it breaks the Xorg 7.4 build. git-svn-id: svn://svn.code.sf.net/p/tigervnc/code/trunk@4063 3789f03b-4d11-0410-bbf8-ca57d06f2519
* [Bugfix] Use always XkbConvertCase instead of XConvertCase when compilingAdam Tkac2010-05-181-1/+6
| | | | | | | | | | against X.Org 1.8.X and newer. Othewrise keysyms are not mapped correctly to keycodes. Reference: https://bugzilla.redhat.com/show_bug.cgi?id=586406 git-svn-id: svn://svn.code.sf.net/p/tigervnc/code/trunk@4057 3789f03b-4d11-0410-bbf8-ca57d06f2519
* [Development] Use AllocDevicePair instead of AddDevice/RegisterDevice functionsAdam Tkac2010-04-141-1/+36
| | | | | | | and initialize TigerVNC input devices after core devices initialization. git-svn-id: svn://svn.code.sf.net/p/tigervnc/code/trunk@4025 3789f03b-4d11-0410-bbf8-ca57d06f2519
* [Development] Merge KeyboardDevice and PointerDevice classes to new class calledAdam Tkac2010-04-141-43/+36
| | | | | | | | InputDevice. It is more accordant to scheme how are input devices handled in the main X.Org sources. git-svn-id: svn://svn.code.sf.net/p/tigervnc/code/trunk@4024 3789f03b-4d11-0410-bbf8-ca57d06f2519
* [Cleanup] Remove bogus vlog.debug from Input.cc:KeyboardDevice::keyEvent.Adam Tkac2009-12-221-1/+1
| | | | git-svn-id: svn://svn.code.sf.net/p/tigervnc/code/trunk@3932 3789f03b-4d11-0410-bbf8-ca57d06f2519
* [Development] Make Xvnc working when compiled against X.Org 1.7 (Thanks to ↵Adam Tkac2009-12-211-33/+177
| | | | | | adq_dvb at lidskialf dot net). git-svn-id: svn://svn.code.sf.net/p/tigervnc/code/trunk@3927 3789f03b-4d11-0410-bbf8-ca57d06f2519
* Avoid modifiers such as shift sticking. Peter Åstrand2009-12-091-0/+17
| | | | git-svn-id: svn://svn.code.sf.net/p/tigervnc/code/trunk@3924 3789f03b-4d11-0410-bbf8-ca57d06f2519
* Move keyboard input related code to Input.h and Input.cc.Adam Tkac2009-08-281-4/+602
| | | | git-svn-id: svn://svn.code.sf.net/p/tigervnc/code/trunk@3887 3789f03b-4d11-0410-bbf8-ca57d06f2519
* Add Input.h and Input.cc and move all mouse input related code there.Adam Tkac2009-08-281-0/+167
git-svn-id: svn://svn.code.sf.net/p/tigervnc/code/trunk@3886 3789f03b-4d11-0410-bbf8-ca57d06f2519