diff options
author | phintuka <phintuka> | 2008-06-13 21:07:51 +0000 |
---|---|---|
committer | phintuka <phintuka> | 2008-06-13 21:07:51 +0000 |
commit | 1fcd8f60379364bf789501f6eb821af4fb6c29dd (patch) | |
tree | 0fb2a62ad3909bef7621ac7d7024b1576e33d34d | |
parent | e23caa9c4f9b02da392bdf2f6afe95b0b8e39756 (diff) | |
download | xineliboutput-1fcd8f60379364bf789501f6eb821af4fb6c29dd.tar.gz xineliboutput-1fcd8f60379364bf789501f6eb821af4fb6c29dd.tar.bz2 |
Removed unneeded variables from XKeyEvent_handler
-rw-r--r-- | xine_sxfe_frontend.c | 19 |
1 files changed, 8 insertions, 11 deletions
diff --git a/xine_sxfe_frontend.c b/xine_sxfe_frontend.c index 39197408..58bb4926 100644 --- a/xine_sxfe_frontend.c +++ b/xine_sxfe_frontend.c @@ -4,7 +4,7 @@ * See the main source file 'xineliboutput.c' for copyright information and * how to reach the author. * - * $Id: xine_sxfe_frontend.c,v 1.54 2008-06-13 20:53:20 phintuka Exp $ + * $Id: xine_sxfe_frontend.c,v 1.55 2008-06-13 21:07:51 phintuka Exp $ * */ @@ -1249,15 +1249,12 @@ static void sxfe_interrupt(frontend_t *this_gen) static int XKeyEvent_handler(sxfe_t *this, XKeyEvent *kev) { - KeySym ks; - char *ksname; - char buffer[20]; - int buf_len = 20; - XComposeStatus status; - if(kev->keycode) { - XLookupString(kev, buffer, buf_len, &ks, &status); - ksname = XKeysymToString(ks); + KeySym ks; + char buffer[20]; + XComposeStatus status; + + XLookupString(kev, buffer, sizeof(buffer), &ks, &status); #if defined(XINELIBOUTPUT_FE_TOGGLE_FULLSCREEN) || defined(INTERPRET_LIRC_KEYS) if(ks == XK_f || ks == XK_F) { sxfe_toggle_fullscreen(this); @@ -1271,10 +1268,10 @@ static int XKeyEvent_handler(sxfe_t *this, XKeyEvent *kev) terminate_key_pressed = 1; return 0; } else if(this->input || find_input(this)) - process_xine_keypress(this->input, "XKeySym",ksname, 0, 0); + process_xine_keypress(this->input, "XKeySym", XKeysymToString(ks), 0, 0); #else if(this->keypress) - this->keypress("XKeySym",ksname); + this->keypress("XKeySym", XKeysymToString(ks)); #endif } |