Commit d210da89 authored by Laurent Aimar's avatar Laurent Aimar

Fixed globalhotkeys compilation with old xcb version.

parent d6f7fd60
...@@ -185,6 +185,7 @@ static unsigned GetModifier( xcb_connection_t *p_connection, xcb_key_symbols_t * ...@@ -185,6 +185,7 @@ static unsigned GetModifier( xcb_connection_t *p_connection, xcb_key_symbols_t *
#ifdef XCB_KEYSYM_OLD_API /* as seen in Debian Lenny */ #ifdef XCB_KEYSYM_OLD_API /* as seen in Debian Lenny */
const xcb_keycode_t key = xcb_key_symbols_get_keycode( p_symbols, sym ); const xcb_keycode_t key = xcb_key_symbols_get_keycode( p_symbols, sym );
if( key == 0 ) if( key == 0 )
return 0;
#else #else
const xcb_keycode_t *p_keys = xcb_key_symbols_get_keycode( p_symbols, sym ); const xcb_keycode_t *p_keys = xcb_key_symbols_get_keycode( p_symbols, sym );
if( !p_keys ) if( !p_keys )
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment