Re: [gtk-vnc-devel] gtk-vnc and AltGr



Hi Guido,

> > Please have a look, if you did not already, at the discussion on
> > https://bugs.launchpad.net/bugs/212013

> I admittedly don't understand enough about the issues involved with vnc
> and GTKs key handling. Can you cook up a patch of your changes (even if
> it's only one line) and post it to:
>  gtk-vnc-devel lists sourceforge net
> for comments? I'd be happy to build experimental Debian packages once we
> have something that makes sense.

I am no expert in key handling, I just press and release ;-) and I see
that AltGr combinations do not work in the packaged state
(0.3.4-0ubuntu1). But with the attached "patch" I can also type, e.g.,
AltGr+q to get an @ into the vnc session, as expected.

Best wishes,

Alexander

diff -Naur gtk-vnc-0.3.4/src/vncdisplay.c gtk-vnc-0.3.4-new/src/vncdisplay.c
--- gtk-vnc-0.3.4/src/vncdisplay.c	2008-03-02 23:02:24.000000000 +0100
+++ gtk-vnc-0.3.4-new/src/vncdisplay.c	2008-04-18 21:05:14.000000000 +0200
@@ -561,7 +561,7 @@
 	 */
 	gdk_keymap_translate_keyboard_state(gdk_keymap_get_default(),
 					    key->hardware_keycode,
-					    key->state & (GDK_SHIFT_MASK | GDK_LOCK_MASK),
+					    key->state /*& (GDK_SHIFT_MASK | GDK_LOCK_MASK)*/,
 					    key->group,
 					    &keyval,
 					    &group,


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]