src/video/x11/SDL_x11events.c
changeset 2306 1a8bab15a45d
parent 2305 fbe8ff44c519
child 2323 4ac07ae446d3
     1.1 --- a/src/video/x11/SDL_x11events.c	Thu Feb 07 15:31:09 2008 +0000
     1.2 +++ b/src/video/x11/SDL_x11events.c	Thu Feb 07 16:00:29 2008 +0000
     1.3 @@ -145,7 +145,7 @@
     1.4  #ifdef DEBUG_XEVENTS
     1.5              printf("MappingNotify!\n");
     1.6  #endif
     1.7 -            X11_UpdateKeymap(this);
     1.8 +            X11_UpdateKeymap(_this);
     1.9          }
    1.10          break;
    1.11  
    1.12 @@ -177,7 +177,7 @@
    1.13      case KeyPress:{
    1.14              KeyCode keycode = xevent.xkey.keycode;
    1.15              KeySym keysym = NoSymbol;
    1.16 -            char text[sizeof(SDL_TEXTINPUTEVENT_TEXT_SIZE)];
    1.17 +            char text[SDL_TEXTINPUTEVENT_TEXT_SIZE];
    1.18              Uint32 ucs4 = 0;
    1.19  
    1.20  #ifdef DEBUG_XEVENTS
    1.21 @@ -199,7 +199,7 @@
    1.22  #endif
    1.23              /* Xutf8LookupString(), works for Latin-1 */
    1.24              SDL_zero(text);
    1.25 -            XLookupString(&xevent, text, sizeof(text), &keysym, NULL);
    1.26 +            XLookupString(&xevent.xkey, text, sizeof(text), &keysym, NULL);
    1.27              if (*text) {
    1.28                  printf("Sending text event %s\n", text);
    1.29                  SDL_SendKeyboardText(videodata->keyboard, text);