Hi!

I'm trying to get Sugar [1] to work inside TigerVNC on Fedora (it works fine inside RealVNC on Debian). The issue I'm having is that parsing key names doesn't work because XGetKeyboardMapping returns an empty (all-zero) keymap until a key gets pressed. It's easily reproducible using the test case given below. Because I know next to nothing about X11 programming, I'd like to make sure it's not us doing anything wrong (like forgetting to call some function) before I call it a TigerVNC bug.

Output on TigerVNC/Fedora (with a no-op .vnc/xstartup):
[array('I', [0L, 0L, 0L, 0L]), array('I', [0L, 0L, 0L, 0L]), array('I', [0L, 0L, 0L, 0L]), array('I', [0L, 0L, 0L, 0L]), array('I', [0L, 0L, 0L, 0L]), array('I', [0L, 0L, 0L, 0L]), array('I', [0L, 0L, 0L, 0L]), array('I', [0L, 0L, 0L, 0L]), array('I', [0L, 0L, 0L, 0L]), array('I', [0L, 0L, 0L, 0L]), array('I', [0L, 0L, 0L, 0L]), array('I', [0L, 0L, 0L, 0L]), array('I', [0L, 0L, 0L, 0L]), array('I', [0L, 0L, 0L, 0L]), array('I', [0L, 0L, 0L, 0L]), array('I', [0L, 0L, 0L, 0L]), array('I', [0L, 0L, 0L, 0L]), array('I', [0L, 0L, 0L, 0L]), array('I', [0L, 0L, 0L, 0L]), array('I', [0L, 0L, 0L, 0L])]

(gdb attached to the real program showed that (256-8)*4=992 zero values are returned, above is limited to 20 values)


Output on RealVNC/Debian (with a no-op .vnc/xstartup):
[array('L', [0L, 0L]), array('L', [65307L, 0L]), array('L', [49L, 33L]), array('L', [50L, 64L]), array('L', [51L, 35L]), array('L', [52L, 36L]), array('L', [53L, 37L]), array('L', [54L, 94L]), array('L', [55L, 38L]), array('L', [56L, 42L]), array('L', [57L, 40L]), array('L', [48L, 41L]), array('L', [45L, 95L]), array('L', [61L, 43L]), array('L', [65288L, 0L]), array('L', [65289L, 0L]), array('L', [113L, 81L]), array('L', [119L, 87L]), array('L', [101L, 69L]), array('L', [114L, 82L])]


Is there anything we might be missing? We're almost exclusively using gtk/gdk, but that doesn't mean there's nothing we could have done wrong.

TigerVNC version: 0.0.91-0.12.fc11.x86_64 (Fedora package)

Test case (needs python-xlib):
=== Begin print-keyboard-mapping.py ===
#!/usr/bin/env python
import Xlib.display

d=Xlib.display.Display()
print d.get_keyboard_mapping(8,20)
=== End print-keyboard-mapping.py ===


[1] http://www.sugarlabs.org/

CU Sascha

--
http://sascha.silbe.org/
http://www.infra-silbe.de/

Attachment: signature.asc
Description: Digital signature

------------------------------------------------------------------------------
Come build with us! The BlackBerry(R) Developer Conference in SF, CA
is the only developer event you need to attend this year. Jumpstart your
developing skills, take BlackBerry mobile applications to market and stay 
ahead of the curve. Join us from November 9 - 12, 2009. Register now!
http://p.sf.net/sfu/devconference
_______________________________________________
Tigervnc-users mailing list
Tigervnc-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/tigervnc-users

Reply via email to