revision 356:b281cad966b7
summary |
tree |
shortlog |
changelog |
graph |
changeset |
raw | bz2 | zip | gz changeset | 356:b281cad966b7 |
parent | 355:18bd008f700a |
child | 357:3592a10b3242 |
author | nkeynes |
date | Tue Feb 13 08:28:50 2007 +0000 (16 years ago) |
Fix crash when display driver does not supply a keysym resolver
![]() | src/display.c | view | annotate | diff | log |
1.1 --- a/src/display.c Sun Feb 11 10:17:03 2007 +00001.2 +++ b/src/display.c Tue Feb 13 08:28:50 2007 +00001.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 display1.9 * driver is expected to deliver events here, where they're translated and1.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;
.