comparison src/video/x11/SDL_x11events.c @ 4117:dbb5f9556796 SDL-1.2

Fixed bug #502 XRefreshKeyboardMapping() is only available when X_HAVE_UTF8_STRING is defined.
author Sam Lantinga <slouken@libsdl.org>
date Sat, 29 Dec 2007 18:50:33 +0000
parents ca992789c798
children 568c9b3c0167
comparison
equal deleted inserted replaced
4116:1bc3d3b2cde1 4117:dbb5f9556796
492 switch_waiting = 0x01; 492 switch_waiting = 0x01;
493 switch_time = SDL_GetTicks() + 200; 493 switch_time = SDL_GetTicks() + 200;
494 } 494 }
495 break; 495 break;
496 496
497 #ifdef X_HAVE_UTF8_STRING
497 /* Some IM requires MappingNotify to be passed to 498 /* Some IM requires MappingNotify to be passed to
498 XRefreshKeyboardMapping by the app. */ 499 XRefreshKeyboardMapping by the app. */
499 case MappingNotify: { 500 case MappingNotify: {
500 XRefreshKeyboardMapping(&xevent.xmapping); 501 XRefreshKeyboardMapping(&xevent.xmapping);
501 } 502 }
502 break; 503 break;
504 #endif /* X_HAVE_UTF8_STRING */
503 505
504 /* Generated upon EnterWindow and FocusIn */ 506 /* Generated upon EnterWindow and FocusIn */
505 case KeymapNotify: { 507 case KeymapNotify: {
506 #ifdef DEBUG_XEVENTS 508 #ifdef DEBUG_XEVENTS
507 printf("KeymapNotify!\n"); 509 printf("KeymapNotify!\n");