<div dir="ltr">Honestly, "Mod1" et al would have been better, but I don't see it being worth changing at this point.</div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Fri, Jul 26, 2019 at 8:41 AM Uli Schlachter <<a href="mailto:psychon@znc.in">psychon@znc.in</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">Hi,<br>
<br>
On 26.07.19 17:24, Sascha Ziemann wrote:<br>
> xproto.xml defines the following enum:<br>
> <br>
>   <enum name="MapIndex"><br>
>     <item name="Shift">  <value>0</value></item><br>
>     <item name="Lock">   <value>1</value></item><br>
>     <item name="Control"><value>2</value></item><br>
>     <item name="1">      <value>3</value></item><br>
>     <item name="2">      <value>4</value></item><br>
>     <item name="3">      <value>5</value></item><br>
>     <item name="4">      <value>6</value></item><br>
>     <item name="5">      <value>7</value></item><br>
>   </enum><br>
> <br>
> What sens does it make to have numeric names?<br>
<br>
Well, how would you call them?<br>
And why is the current name a problem?<br>
<br>
Looking at the protocol documentation, I guess one could call them Mod1<br>
etc, but they are still essentially numeric:<br>
<br>
> KEYMASK {Shift, Lock, Control, Mod1, Mod2, Mod3, Mod4, Mod5}<br>
<br>
<a href="https://www.x.org/releases/X11R7.5/doc/x11proto/proto.html" rel="noreferrer" target="_blank">https://www.x.org/releases/X11R7.5/doc/x11proto/proto.html</a><br>
<br>
Calling them Mod1 in the XML would lead to XCB generating<br>
XCB_MAP_INDEX_MOD1 instead of XCB_MAP_INDEX_1, which is not really better...<br>
<br>
Hope this helps a bit,<br>
Uli<br>
-- <br>
“Cold. Cold. Cold. Cold. Cold. Cold. Cold. Cold. Cold. Cold.” – Anna<br>
_______________________________________________<br>
Xcb mailing list<br>
<a href="mailto:Xcb@lists.freedesktop.org" target="_blank">Xcb@lists.freedesktop.org</a><br>
<a href="https://lists.freedesktop.org/mailman/listinfo/xcb" rel="noreferrer" target="_blank">https://lists.freedesktop.org/mailman/listinfo/xcb</a></blockquote></div>