<div dir="ltr"><br><div class="gmail_extra"><br><br><div class="gmail_quote">On Fri, Jul 19, 2013 at 1:56 AM, Peter Hutterer <span dir="ltr"><<a href="mailto:peter.hutterer@who-t.net" target="_blank">peter.hutterer@who-t.net</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">The smart thing would be to have the SD's keyboard focus to be identical to<br>
the MD's keyboard focus (and a BadDevice returned when trying to set an<br>
attached SD's keyboard focus) but alas, the server never implemented this<br>
behaviour and we've now shipped 7 versions with separate SD and MD focus. So<br>
consider this set in stone. oops.<br>
<br>
Signed-off-by: Peter Hutterer <<a href="mailto:peter.hutterer@who-t.net">peter.hutterer@who-t.net</a>><br>
---<br>
specs/XI2proto.txt | 9 +++++++++<br>
1 file changed, 9 insertions(+)<br>
<br>
diff --git a/specs/XI2proto.txt b/specs/XI2proto.txt<br>
index d30fcca..79988fc 100644<br>
--- a/specs/XI2proto.txt<br>
+++ b/specs/XI2proto.txt<br>
@@ -212,6 +212,8 @@ If an event is generated by an SD<br>
<br>
- if the SD is attached to a master pointer, it changes the position and/or<br>
button state of the master pointer.<br>
+- if the SD has a keyboard focus other than None, the key event is sent to<br>
+ the focus window.<br>
- if the SD is attached to a master keyboard, it sends events to this<br>
keyboard's focus window (if applicable) and/or changes the modifier state of<br>
this keyboard.<br>
@@ -220,6 +222,13 @@ If an event is generated by an SD<br>
Both the sprite and the focus must be managed explicitly by the client<br>
program.<br>
<br>
+Note: the keyboard focus of an attached slave device is independent to that<br>
+of the master device. Two keyboard events are generated, once with deviceid<br>
+and sourceid set to the slave device. This keyboard event is sent to the<br>
+slave device's focus window. The second event has a deviceid of the master<br>
+and a sourceid of the slave device. This second event is delivered to the<br>
+master keyboard's focus window.<br>
+ </blockquote><div><br></div><div>Hm. Is it already emphasized that the default is the root window? If so,<br><br></div><div>Reviewed-by: Jasper St. Pierre <<a href="mailto:jstpierre@mecheye.net">jstpierre@mecheye.net</a>><br>
</div><div><br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
[[hierarchy-dcce]]<br>
Event processing for attached slave devices<br>
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~<br>
<span class="HOEnZb"><font color="#888888">--<br>
1.8.2.1<br>
<br>
</font></span></blockquote></div><br><br clear="all"><br>-- <br> Jasper<br>
</div></div>