Patchwork [1/1] x11vnc: fix CAPS_LOCK issues

login
register
mail settings
Submitter Laurentiu Palcu
Date Jan. 16, 2014, 2:25 p.m.
Message ID <6bfb77b03055a1694a505a1b80d96c7d1f30a1d0.1389882270.git.laurentiu.palcu@intel.com>
Download mbox | patch
Permalink /patch/64973/
State Accepted
Commit 650ee5e27521489c2907cf592cdd9161af844e68
Headers show

Comments

Laurentiu Palcu - Jan. 16, 2014, 2:25 p.m.
Currently, pressing CAPS_LOCK on the viewer changes the lock state on
the server and the key will not change the case.

To fix this, use -skip_lockkeys option to ignore all Caps_Lock,
Shift_Lock, Num_Lock, Scroll_Lock keysyms received from viewers, in
order to leave the lock state on the server side unchanged. However, the
keys will appear correctly on the remote side.

[YOCTO #4149]

Signed-off-by: Laurentiu Palcu <laurentiu.palcu@intel.com>
---
 .../x11vnc/files/starting-fix.patch                |    6 +++++-
 1 file changed, 5 insertions(+), 1 deletion(-)

Patch

diff --git a/meta/recipes-graphics/x11vnc/files/starting-fix.patch b/meta/recipes-graphics/x11vnc/files/starting-fix.patch
index cfaa797..f62e405 100644
--- a/meta/recipes-graphics/x11vnc/files/starting-fix.patch
+++ b/meta/recipes-graphics/x11vnc/files/starting-fix.patch
@@ -1,8 +1,12 @@ 
 "-gui" & "-rfbport" require "wish" installed, or else x11vnc fails to start.
 Removing these 2 parameters makes x11vnc works well on poky sato image.
 
+Add also -skip_lockkeys option to ignore all Caps_Lock, Shift_Lock, Num_Lock,
+Scroll_Lock keysyms received from viewers, in order to leave the lock state on
+the server side unchanged. Yet, the keys will appear correctly.
 
 Signed-off-by: Zhai Edwin <edwin.zhai@intel.com>
+Signed-off-by: Laurentiu Palcu <laurentiu.palcu@intel.com>
 
 Upstream-Status: Inappropriate [configuration]
 
@@ -15,7 +19,7 @@  Index: x11vnc-0.9.12/x11vnc/x11vnc.desktop
  Name=X11VNC Server
  Comment=Share this desktop by VNC
 -Exec=x11vnc -gui tray=setpass -rfbport PROMPT -bg -o %%HOME/.x11vnc.log.%%VNCDISPLAY
-+Exec=x11vnc -bg -rfbport 5900 -o %%HOME/.x11vnc.log.%%VNCDISPLAY
++Exec=x11vnc -bg -rfbport 5900 -skip_lockkeys -o %%HOME/.x11vnc.log.%%VNCDISPLAY
  Icon=computer
  Terminal=false
  Type=Application