RE: Re: [libxkbcommon] Question about how to get xkb_keycode_t from xkb_keysym_t.

2015-06-02 Thread 박성진
: [libxkbcommon] Question about how to get xkb_keycode_t from xkb_keysym_t. Note that there are non-obvious consequences to this. The keymap is hierarchical upon layouts and levels. You can either do a depth-first search, or a breadth-first search. This can change behavior. XKeysymToKeycode is

Re: Fwd: Re: Re: [libxkbcommon] Question about how to get xkb_keycode_t from xkb_keysym_t.

2015-06-01 Thread Bill Spitzak
Despite the impression you may get from the API, the compositor is able (and required to implement many designs) to decode keyboard events into keysyms, using exactly the same xkb code clients would use and thus arriving at the same answer. Therefore if there was a key-grab api to the composit

Re: Re: [libxkbcommon] Question about how to get xkb_keycode_t from xkb_keysym_t.

2015-06-01 Thread Jasper St. Pierre
Note that there are non-obvious consequences to this. The keymap is hierarchical upon layouts and levels. You can either do a depth-first search, or a breadth-first search. This can change behavior. XKeysymToKeycode is documented as doing a breadth-first search. This can have consequences in behavi

Re: Re: [libxkbcommon] Question about how to get xkb_keycode_t from xkb_keysym_t.

2015-06-01 Thread Daniel Stone
Hi, On 1 June 2015 at 12:22, 박성진 wrote: > Actually, we'd like to provide a key grab protocol to wayland client(s) > > with which each client can make request to grab a key to wayland > compositor. > > To use the protocol, we need to provide one or more keycodes associated > with a given keysym

Fwd: Re: Re: [libxkbcommon] Question about how to get xkb_keycode_t from xkb_keysym_t.

2015-06-01 Thread 박성진
Resend not to make this mail scrubbed. Sorry. :) --- Original Message --- Sender : 박성진 S5(책임)/책임/Common Platform Lab(S/W센터)/삼성전자 Date : 2015-06-01 20:22 (GMT+09:00) Title : Re: Re: [libxkbcommon] Question about how to get xkb_keycode_t from xkb_keysym_t. Dear Daniel, thanks for your

Re: Re: [libxkbcommon] Question about how to get xkb_keycode_t from xkb_keysym_t.

2015-06-01 Thread 박성진
Title: Samsung Enterprise Portal mySingle Dear Daniel, thanks for your quick answer. :) In theory, one or more keysym can be mapped to each corresponding keycode therefore we need to look through the keymap to find them out. I agree with you on that. :)   Actually, we'd like to provide a ke