X Core Protocol Scheme

Michael Titke michael.tiedtke at o2online.de
Mon Dec 14 02:18:17 PST 2015


On 14/12/2015 01:04, Ilya Anfimov wrote:
> On Sun, Dec 13, 2015 at 10:19:59AM +0100, Michael Titke wrote:
>
> Good day!
>
> [skipped]
>
>> When we add the keymap events to the event mask of the window (bit-or
>> cw-keyboard cw-keymap) (BTW it's nice the core specifications containts Lisp
>> like hexidecimal numbers which allows for copy & paste: (define cw-keymap
>> (number->byte-string-4 #x00004000))) we only receive void keymap events but
>> they really do appear for every suppressed enter notification:
>>
>> VSI SCA/X: unhandled event: #"11 0 0 0  16 0 0 0  0 0 0 0  0 0 0 0 0 0 0 0
>> 0 0 0 0  0 0 0 0  0 0 0 0"
>> VSI SCA/X: unhandled event: #"11 0 0 0  0 0 0 0  0 0 0 0  0 0 0 0  0 0 0 0
>> 0 0 0 0  0 0 0 0  0 0 0 0"
>   This  is exactly the behaviour specified in the X11 protocol de-
> scription.
>   Look at KeymapNotify event description (which  you  request  via
> #x00004000 event mask).
>
>   btw,  it  is  not  void  events: first one, in current linux PC,
> should indicate that the Return key is pressed.
>
>   And it is not related to keymaps. There is  MappingNotify  event
> for keymaps, and you cannot request it as it is always reported.
>   (And it is relatively rare event for most  setups,  and  may  be
> even  never will come to your app, however this does not mean you
> can ignore it)

On a second thought that  behavior specified by the core protocol 
doesn't even make much sense ...


>
>>
>> No matter what the request to receive the current mappings
>> (X-get-keyboard-mapping X) is silently ignored.
>   Most  probably  you  have  another off-by-one error or something
> wrong with error dispatcher or so.
>   But give me tcpdump -w of complete session, then there  will  be
> some base about your statements.
>
>

Thank you. That issue will be revised (again) after the implementation 
of other parts of the protocol.


More information about the xorg mailing list