Search
lxdream.org :: lxdream :: r356:b281cad966b7
lxdream 0.9.1
released Jun 29
Download Now
changeset356:b281cad966b7
parent355:18bd008f700a
child357:3592a10b3242
authornkeynes
dateTue Feb 13 08:28:50 2007 +0000 (12 years ago)
Fix crash when display driver does not supply a keysym resolver
src/display.c
1.1 --- a/src/display.c Sun Feb 11 10:17:03 2007 +0000
1.2 +++ b/src/display.c Tue Feb 13 08:28:50 2007 +0000
1.3 @@ -1,5 +1,5 @@
1.4 /**
1.5 - * $Id: display.c,v 1.6 2007-02-11 10:09:32 nkeynes Exp $
1.6 + * $Id: display.c,v 1.7 2007-02-13 08:28:50 nkeynes Exp $
1.7 *
1.8 * Generic support for keyboard and other input sources. The active display
1.9 * driver is expected to deliver events here, where they're translated and
1.10 @@ -79,7 +79,7 @@
1.11 void *data, uint32_t value )
1.12 {
1.13 int i;
1.14 - if( display_driver == NULL || keysym == NULL )
1.15 + if( display_driver == NULL || keysym == NULL || display_driver->resolve_keysym == NULL )
1.16 return FALSE; /* No display driver */
1.17 gchar **strv = g_strsplit(keysym, ",", 16);
1.18 gchar **s = strv;
.