tigervnc/u_tigervnc-dont-send-ascii-control-characters.patch
Michal Srb 6eb478ebc4 Accepting request 226467 from home:michalsrb:branches:X11:XOrg
- Update HTML page that serves vnc client applet. (bnc#867273)
- u_tigervnc-dont-send-ascii-control-characters.patch
  * Send CTRL+[A-Z] combinations instead of ascii control characters.
    (bnc#864666)

OBS-URL: https://build.opensuse.org/request/show/226467
OBS-URL: https://build.opensuse.org/package/show/X11:XOrg/tigervnc?expand=0&rev=19
2014-03-17 14:34:08 +00:00

25 lines
731 B
Diff

Author: Michal Srb <msrb@suse.com>
Subject: Do not send ascii control characters for CTRL+[A-Z] combinations.
Patch-Mainline: To be upstreamed
References: bnc#864666
Index: vncviewer/Viewport.cxx
===================================================================
--- vncviewer/Viewport.cxx (revision 5162)
+++ vncviewer/Viewport.cxx (working copy)
@@ -753,7 +753,13 @@
return XK_VoidSymbol;
}
- ucs = fl_utf8decode(keyText, NULL, NULL);
+ if (keyCode >= 'a' && keyCode <= 'z' && keyText[0] < 0x20) {
+ // Do not send ascii control characters - send the original key combination that caused them.
+ ucs = keyCode;
+ } else {
+ ucs = fl_utf8decode(keyText, NULL, NULL);
+ }
+
return ucs2keysym(ucs);
}