<html xmlns:v="urn:schemas-microsoft-com:vml" xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:w="urn:schemas-microsoft-com:office:word" xmlns:m="http://schemas.microsoft.com/office/2004/12/omml" xmlns="http://www.w3.org/TR/REC-html40"><head><meta http-equiv=Content-Type content="text/html; charset=ks_c_5601-1987"><meta name=Generator content="Microsoft Word 14 (filtered medium)"><style><!--
/* Font Definitions */
@font-face
{font-family:±¼¸²;
panose-1:2 11 6 0 0 1 1 1 1 1;}
@font-face
{font-family:±¼¸²;
panose-1:2 11 6 0 0 1 1 1 1 1;}
@font-face
{font-family:"¸¼Àº °íµñ";
panose-1:2 11 5 3 2 0 0 2 0 4;}
@font-face
{font-family:±¼¸²Ã¼;
panose-1:2 11 6 9 0 1 1 1 1 1;}
@font-face
{font-family:"\@¸¼Àº °íµñ";
panose-1:2 11 5 3 2 0 0 2 0 4;}
@font-face
{font-family:"\@±¼¸²";
panose-1:2 11 6 0 0 1 1 1 1 1;}
@font-face
{font-family:"\@±¼¸²Ã¼";
panose-1:2 11 6 9 0 1 1 1 1 1;}
@font-face
{font-family:Tahoma;
panose-1:2 11 6 4 3 5 4 4 2 4;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
{margin:0cm;
margin-bottom:.0001pt;
text-align:justify;
text-justify:inter-ideograph;
text-autospace:none;
word-break:break-hangul;
font-size:10.0pt;
font-family:"¸¼Àº °íµñ";}
a:link, span.MsoHyperlink
{mso-style-priority:99;
color:blue;
text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
{mso-style-priority:99;
color:purple;
text-decoration:underline;}
p
{mso-style-priority:99;
mso-margin-top-alt:auto;
margin-right:0cm;
mso-margin-bottom-alt:auto;
margin-left:0cm;
font-size:9.0pt;
font-family:±¼¸²Ã¼;}
span.EmailStyle18
{mso-style-type:personal;
font-family:"¸¼Àº °íµñ";
color:windowtext;}
span.EmailStyle19
{mso-style-type:personal-reply;
font-family:"¸¼Àº °íµñ";
color:#1F497D;}
.MsoChpDefault
{mso-style-type:export-only;}
@page WordSection1
{size:612.0pt 792.0pt;
margin:3.0cm 72.0pt 72.0pt 72.0pt;}
div.WordSection1
{page:WordSection1;}
--></style><!--[if gte mso 9]><xml>
<o:shapedefaults v:ext="edit" spidmax="1026" />
</xml><![endif]--><!--[if gte mso 9]><xml>
<o:shapelayout v:ext="edit">
<o:idmap v:ext="edit" data="1" />
</o:shapelayout></xml><![endif]--></head><body lang=KO link=blue vlink=purple><div class=WordSection1><p class=MsoNormal><span lang=EN-US style='color:#1F497D'>Hello, Peter Hutterer.<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US style='color:#1F497D'><o:p> </o:p></span></p><p class=MsoNormal><span lang=EN-US style='color:#1F497D'>I¡¯m planning to add a ¡°Event cancel¡±(Touch Cancel?) event in x11 protocol.<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US style='color:#1F497D'>Like below article I want to send a event to apps for notification about current events are canceled!.<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US style='color:#1F497D'><o:p> </o:p></span></p><p class=MsoNormal><span lang=EN-US style='color:#1F497D'>How/What I doing for this job?<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US style='color:#1F497D'>I need your advise. Please give me your help.<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US style='color:#1F497D'><o:p> </o:p></span></p><p class=MsoNormal><span lang=EN-US style='color:#1F497D'>Thanks and regards,<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US style='color:#1F497D'>Jeonghyun Kang.<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US style='color:#1F497D'><o:p> </o:p></span></p><div><div style='border:none;border-top:solid #B5C4DF 1.0pt;padding:3.0pt 0cm 0cm 0cm'><p class=MsoNormal align=left style='text-align:left;text-autospace:ideograph-numeric ideograph-other;word-break:keep-all'><b><span lang=EN-US style='font-family:"Tahoma","sans-serif"'>From:</span></b><span lang=EN-US style='font-family:"Tahoma","sans-serif"'> </span><span style='font-family:±¼¸²'>°Á¤Çö</span><span lang=EN-US style='font-family:"Tahoma","sans-serif"'> [mailto:jhyuni.kang@samsung.com] <br><b>Sent:</b> Wednesday, April 15, 2015 7:39 PM<br><b>To:</b> 'xorg-devel@lists.x.org'<br><b>Subject:</b> [X11] Question about TouchCancel event like ACTION_CANCEL in android<o:p></o:p></span></p></div></div><p class=MsoNormal align=left style='text-align:left'><span lang=EN-US><o:p> </o:p></span></p><p class=MsoNormal align=left style='text-align:left;line-height:150%;text-autospace:ideograph-other;word-break:keep-all'><span lang=EN-US>Hello, Dears.<o:p></o:p></span></p><p class=MsoNormal align=left style='text-align:left;line-height:150%;text-autospace:ideograph-other;word-break:keep-all'><span lang=EN-US>I send this email again. Because of HTML (not text)<o:p></o:p></span></p><p class=MsoNormal align=left style='text-align:left;line-height:150%;text-autospace:ideograph-other;word-break:keep-all'><span lang=EN-US><o:p> </o:p></span></p><p class=MsoNormal align=left style='text-align:left;line-height:150%;text-autospace:ideograph-other;word-break:keep-all'><span lang=EN-US>I'm planning to add a touch cancel event(like ACTION_CANCEL in Android) in X11 protocol.<o:p></o:p></span></p><p class=MsoNormal align=left style='text-align:left;line-height:150%;text-autospace:ideograph-other;word-break:keep-all'><span lang=EN-US> <o:p></o:p></span></p><p class=MsoNormal align=left style='text-align:left;line-height:150%;text-autospace:ideograph-other;word-break:keep-all'><span lang=EN-US>So I invested XI events and I found a variable named "flags" in DeviceEvent structure.<o:p></o:p></span></p><p class=MsoNormal align=left style='text-align:left;line-height:150%;text-autospace:ideograph-other;word-break:keep-all'><span lang=EN-US>The "flags" variable can get values like below.<o:p></o:p></span></p><p class=MsoNormal align=left style='text-align:left;line-height:150%;text-autospace:ideograph-other;word-break:keep-all'><span lang=EN-US> <o:p></o:p></span></p><p class=MsoNormal align=left style='text-align:left;line-height:150%;text-autospace:ideograph-other;word-break:keep-all'><span lang=EN-US>==========================================================<o:p></o:p></span></p><p class=MsoNormal align=left style='text-align:left;line-height:150%;text-autospace:ideograph-other;word-break:keep-all'><span lang=EN-US>(defined in XI2.h)<o:p></o:p></span></p><p class=MsoNormal align=left style='text-align:left;line-height:150%;text-autospace:ideograph-other;word-break:keep-all'><span lang=EN-US>/* Device event flags (common) */<o:p></o:p></span></p><p class=MsoNormal align=left style='text-align:left;line-height:150%;text-autospace:ideograph-other;word-break:keep-all'><span lang=EN-US>/* Device event flags (key events only) */<o:p></o:p></span></p><p class=MsoNormal align=left style='text-align:left;line-height:150%;text-autospace:ideograph-other;word-break:keep-all'><span lang=EN-US>#define XIKeyRepeat (1 << 16)<o:p></o:p></span></p><p class=MsoNormal align=left style='text-align:left;line-height:150%;text-autospace:ideograph-other;word-break:keep-all'><span lang=EN-US>/* Device event flags (pointer events only) */<o:p></o:p></span></p><p class=MsoNormal align=left style='text-align:left;line-height:150%;text-autospace:ideograph-other;word-break:keep-all'><span lang=EN-US>#define XIPointerEmulated (1 << 16)<o:p></o:p></span></p><p class=MsoNormal align=left style='text-align:left;line-height:150%;text-autospace:ideograph-other;word-break:keep-all'><span lang=EN-US>/* Device event flags (touch events only) */<o:p></o:p></span></p><p class=MsoNormal align=left style='text-align:left;line-height:150%;text-autospace:ideograph-other;word-break:keep-all'><span lang=EN-US>#define XITouchPendingEnd (1 << 16)<o:p></o:p></span></p><p class=MsoNormal align=left style='text-align:left;line-height:150%;text-autospace:ideograph-other;word-break:keep-all'><span lang=EN-US>#define XITouchEmulatingPointer (1 << 17)<o:p></o:p></span></p><p class=MsoNormal align=left style='text-align:left;line-height:150%;text-autospace:ideograph-other;word-break:keep-all'><span lang=EN-US>==========================================================<o:p></o:p></span></p><p class=MsoNormal align=left style='text-align:left;line-height:150%;text-autospace:ideograph-other;word-break:keep-all'><span lang=EN-US><o:p> </o:p></span></p><p class=MsoNormal align=left style='text-align:left;line-height:150%;text-autospace:ideograph-other;word-break:keep-all'><span lang=EN-US>So I think how about insert "Device event flags" for a touch cancel event like below.<o:p></o:p></span></p><p class=MsoNormal align=left style='text-align:left;line-height:150%;text-autospace:ideograph-other;word-break:keep-all'><span lang=EN-US>#define XITouchCancel (1 << 18)<o:p></o:p></span></p><p class=MsoNormal align=left style='text-align:left;line-height:150%;text-autospace:ideograph-other;word-break:keep-all'><span lang=EN-US>or<o:p></o:p></span></p><p class=MsoNormal align=left style='text-align:left;line-height:150%;text-autospace:ideograph-other;word-break:keep-all'><span lang=EN-US>#define XIPointerCancel (1 << 18)<o:p></o:p></span></p><p class=MsoNormal align=left style='text-align:left;line-height:150%;text-autospace:ideograph-other;word-break:keep-all'><span lang=EN-US>we can distinguish Normal touch events and a touch cancel event using XITouchCancel definition.<o:p></o:p></span></p><p class=MsoNormal align=left style='text-align:left;line-height:150%;text-autospace:ideograph-other;word-break:keep-all'><span lang=EN-US> <o:p></o:p></span></p><p class=MsoNormal align=left style='text-align:left;line-height:150%;text-autospace:ideograph-other;word-break:keep-all'><span lang=EN-US>Another way is make new events: struct TouchCancelEvent( have a type "XI_TouchCancel")<o:p></o:p></span></p><p class=MsoNormal align=left style='text-align:left;line-height:150%;text-autospace:ideograph-other;word-break:keep-all'><span lang=EN-US> <o:p></o:p></span></p><p class=MsoNormal align=left style='text-align:left;line-height:150%;text-autospace:ideograph-other;word-break:keep-all'><span lang=EN-US>Each method has its advantages and disadvantages.<o:p></o:p></span></p><p class=MsoNormal align=left style='text-align:left;line-height:150%;text-autospace:ideograph-other;word-break:keep-all'><span lang=EN-US> <o:p></o:p></span></p><p class=MsoNormal align=left style='text-align:left;line-height:150%;text-autospace:ideograph-other;word-break:keep-all'><span lang=EN-US>So I hope to hear opinions.<o:p></o:p></span></p><p class=MsoNormal align=left style='text-align:left;line-height:150%;text-autospace:ideograph-other;word-break:keep-all'><span lang=EN-US>Would you give me some advice or opinion?<o:p></o:p></span></p><p class=MsoNormal align=left style='text-align:left;line-height:150%;text-autospace:ideograph-other;word-break:keep-all'><span lang=EN-US> <o:p></o:p></span></p><p class=MsoNormal align=left style='text-align:left;line-height:150%;text-autospace:ideograph-other;word-break:keep-all'><span lang=EN-US>I will wait your reply.<o:p></o:p></span></p><p class=MsoNormal align=left style='text-align:left;line-height:150%;text-autospace:ideograph-other;word-break:keep-all'><span lang=EN-US>Best regards,<o:p></o:p></span></p><p class=MsoNormal align=left style='text-align:left;line-height:150%;text-autospace:ideograph-other;word-break:keep-all'><span lang=EN-US>Jeonghyun Kang.<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US><o:p> </o:p></span></p></div></body></html>