<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 5 3 2 0 0 2 0 4;}
@font-face
        {font-family:"\@¸¼Àº °íµñ";
        panose-1:2 11 5 3 2 0 0 2 0 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.MsoListParagraph, li.MsoListParagraph, div.MsoListParagraph
        {mso-style-priority:34;
        margin-top:0cm;
        margin-right:0cm;
        margin-bottom:0cm;
        margin-left:40.0pt;
        margin-bottom:.0001pt;
        mso-para-margin-top:0cm;
        mso-para-margin-right:0cm;
        mso-para-margin-bottom:0cm;
        mso-para-margin-left:4.0gd;
        mso-para-margin-bottom:.0001pt;
        text-align:justify;
        text-justify:inter-ideograph;
        text-autospace:none;
        word-break:break-hangul;
        font-size:10.0pt;
        font-family:"¸¼Àº °íµñ";}
span.EmailStyle17
        {mso-style-type:personal-compose;
        font-family:"¸¼Àº °íµñ";
        color:windowtext;}
.MsoChpDefault
        {mso-style-type:export-only;
        font-family:"¸¼Àº °íµñ";}
/* Page Definitions */
@page WordSection1
        {size:612.0pt 792.0pt;
        margin:3.0cm 72.0pt 72.0pt 72.0pt;}
div.WordSection1
        {page:WordSection1;}
/* List Definitions */
@list l0
        {mso-list-id:1887795057;
        mso-list-type:hybrid;
        mso-list-template-ids:127989036 1380210518 67698713 67698715 67698703 67698713 67698715 67698703 67698713 67698715;}
@list l0:level1
        {mso-level-tab-stop:none;
        mso-level-number-position:left;
        margin-left:38.0pt;
        text-indent:-18.0pt;}
@list l0:level2
        {mso-level-number-format:alpha-upper;
        mso-level-tab-stop:none;
        mso-level-number-position:left;
        margin-left:60.0pt;
        text-indent:-20.0pt;}
@list l0:level3
        {mso-level-number-format:roman-lower;
        mso-level-tab-stop:none;
        mso-level-number-position:right;
        margin-left:80.0pt;
        text-indent:-20.0pt;}
@list l0:level4
        {mso-level-tab-stop:none;
        mso-level-number-position:left;
        margin-left:100.0pt;
        text-indent:-20.0pt;}
@list l0:level5
        {mso-level-number-format:alpha-upper;
        mso-level-tab-stop:none;
        mso-level-number-position:left;
        margin-left:120.0pt;
        text-indent:-20.0pt;}
@list l0:level6
        {mso-level-number-format:roman-lower;
        mso-level-tab-stop:none;
        mso-level-number-position:right;
        margin-left:140.0pt;
        text-indent:-20.0pt;}
@list l0:level7
        {mso-level-tab-stop:none;
        mso-level-number-position:left;
        margin-left:160.0pt;
        text-indent:-20.0pt;}
@list l0:level8
        {mso-level-number-format:alpha-upper;
        mso-level-tab-stop:none;
        mso-level-number-position:left;
        margin-left:180.0pt;
        text-indent:-20.0pt;}
@list l0:level9
        {mso-level-number-format:roman-lower;
        mso-level-tab-stop:none;
        mso-level-number-position:right;
        margin-left:200.0pt;
        text-indent:-20.0pt;}
ol
        {margin-bottom:0cm;}
ul
        {margin-bottom:0cm;}
--></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>Hello.<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US><o:p> </o:p></span></p><p class=MsoNormal><span lang=EN-US>I feel unnatural to implement custom cursor scenario. Here is a question.<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US>How does a client request compositor to use system cursor?<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US><o:p> </o:p></span></p><p class=MsoNormal><span lang=EN-US>The system cursor means a current default cursor for compositor.<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US>Currently, client should know about the system cursor in order to use it as parameter of wl_pointer.set_cursor.<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US>Otherwise, cursor surface should be destroyed to request compositor a rollback to system cursor from custom cursor.<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US><o:p> </o:p></span></p><p class=MsoNormal><span lang=EN-US>I think it¡¯s enough to detach buffer from cursor surface for hiding the cursor.<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US>And set_cursor(null surface) can be used to request to stop using custom cursor. (rollback)<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US><o:p> </o:p></span></p><p class=MsoNormal><span lang=EN-US>Here are some states and protocols.<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US><o:p> </o:p></span></p><p class=MsoListParagraph style='margin-left:38.0pt;mso-para-margin-left:0gd;text-indent:-18.0pt;mso-list:l0 level1 lfo1'><![if !supportLists]><span lang=EN-US><span style='mso-list:Ignore'>1.<span style='font:7.0pt "Times New Roman"'>     </span></span></span><![endif]><span lang=EN-US>System cursor -> Custom cursor<o:p></o:p></span></p><p class=MsoListParagraph style='margin-left:60.0pt;mso-para-margin-left:0gd;text-indent:-20.0pt;mso-list:l0 level2 lfo1'><![if !supportLists]><span lang=EN-US><span style='mso-list:Ignore'>A.<span style='font:7.0pt "Times New Roman"'>     </span></span></span><![endif]><span lang=EN-US>set_cursor(cursor_surface)<o:p></o:p></span></p><p class=MsoListParagraph style='margin-left:60.0pt;mso-para-margin-left:0gd;text-indent:-20.0pt;mso-list:l0 level2 lfo1'><![if !supportLists]><span lang=EN-US><span style='mso-list:Ignore'>B.<span style='font:7.0pt "Times New Roman"'>      </span></span></span><![endif]><span lang=EN-US>cursor_surface.attach(buffer for custom image)<o:p></o:p></span></p><p class=MsoListParagraph style='margin-left:60.0pt;mso-para-margin-left:0gd;text-indent:-20.0pt;mso-list:l0 level2 lfo1'><![if !supportLists]><span lang=EN-US><span style='mso-list:Ignore'>C.<span style='font:7.0pt "Times New Roman"'>      </span></span></span><![endif]><span lang=EN-US>cursor_surface.damage<o:p></o:p></span></p><p class=MsoListParagraph style='margin-left:60.0pt;mso-para-margin-left:0gd;text-indent:-20.0pt;mso-list:l0 level2 lfo1'><![if !supportLists]><span lang=EN-US><span style='mso-list:Ignore'>D.<span style='font:7.0pt "Times New Roman"'>     </span></span></span><![endif]><span lang=EN-US>cursor_surface.commit<o:p></o:p></span></p><p class=MsoListParagraph style='margin-left:60.0pt;mso-para-margin-left:0gd'><span lang=EN-US><o:p> </o:p></span></p><p class=MsoListParagraph style='margin-left:38.0pt;mso-para-margin-left:0gd;text-indent:-18.0pt;mso-list:l0 level1 lfo1'><![if !supportLists]><span lang=EN-US><span style='mso-list:Ignore'>2.<span style='font:7.0pt "Times New Roman"'>     </span></span></span><![endif]><span lang=EN-US>Custom cursor -> System cursor<o:p></o:p></span></p><p class=MsoListParagraph style='margin-left:60.0pt;mso-para-margin-left:0gd;text-indent:-20.0pt;mso-list:l0 level2 lfo1'><![if !supportLists]><span lang=EN-US><span style='mso-list:Ignore'>A.<span style='font:7.0pt "Times New Roman"'>     </span></span></span><![endif]><span lang=EN-US>set_cursor(null surface)<o:p></o:p></span></p><p class=MsoListParagraph style='margin-left:60.0pt;mso-para-margin-left:0gd'><span lang=EN-US><o:p> </o:p></span></p><p class=MsoListParagraph style='margin-left:38.0pt;mso-para-margin-left:0gd;text-indent:-18.0pt;mso-list:l0 level1 lfo1'><![if !supportLists]><span lang=EN-US><span style='mso-list:Ignore'>3.<span style='font:7.0pt "Times New Roman"'>     </span></span></span><![endif]><span lang=EN-US>Custom cursor -> Hide Cursor<o:p></o:p></span></p><p class=MsoListParagraph style='margin-left:60.0pt;mso-para-margin-left:0gd;text-indent:-20.0pt;mso-list:l0 level2 lfo1'><![if !supportLists]><span lang=EN-US><span style='mso-list:Ignore'>A.<span style='font:7.0pt "Times New Roman"'>     </span></span></span><![endif]><span lang=EN-US>set_cursor(cursor_surface)   (can be omitted if it is already set)<o:p></o:p></span></p><p class=MsoListParagraph style='margin-left:60.0pt;mso-para-margin-left:0gd;text-indent:-20.0pt;mso-list:l0 level2 lfo1'><![if !supportLists]><span lang=EN-US><span style='mso-list:Ignore'>B.<span style='font:7.0pt "Times New Roman"'>      </span></span></span><![endif]><span lang=EN-US>cursor_surface.attach(null buffer)<o:p></o:p></span></p><p class=MsoListParagraph style='margin-left:60.0pt;mso-para-margin-left:0gd;text-indent:-20.0pt;mso-list:l0 level2 lfo1'><![if !supportLists]><span lang=EN-US><span style='mso-list:Ignore'>C.<span style='font:7.0pt "Times New Roman"'>      </span></span></span><![endif]><span lang=EN-US>cursor_surface.commit<o:p></o:p></span></p><p class=MsoListParagraph style='margin-left:60.0pt;mso-para-margin-left:0gd'><span lang=EN-US><o:p> </o:p></span></p><p class=MsoListParagraph style='margin-left:38.0pt;mso-para-margin-left:0gd;text-indent:-18.0pt;mso-list:l0 level1 lfo1'><![if !supportLists]><span lang=EN-US><span style='mso-list:Ignore'>4.<span style='font:7.0pt "Times New Roman"'>     </span></span></span><![endif]><span lang=EN-US>System cursor -> Hide Cursor<o:p></o:p></span></p><p class=MsoListParagraph style='margin-left:60.0pt;mso-para-margin-left:0gd;text-indent:-20.0pt;mso-list:l0 level2 lfo1'><![if !supportLists]><span lang=EN-US><span style='mso-list:Ignore'>A.<span style='font:7.0pt "Times New Roman"'>     </span></span></span><![endif]><span lang=EN-US>set_cursor(cursor_surface) <o:p></o:p></span></p><p class=MsoListParagraph style='margin-left:60.0pt;mso-para-margin-left:0gd;text-indent:-20.0pt;mso-list:l0 level2 lfo1'><![if !supportLists]><span lang=EN-US><span style='mso-list:Ignore'>B.<span style='font:7.0pt "Times New Roman"'>      </span></span></span><![endif]><span lang=EN-US>cursor_surface.attach(null buffer) (can be omitted if it is already detached)<o:p></o:p></span></p><p class=MsoListParagraph style='margin-left:60.0pt;mso-para-margin-left:0gd;text-indent:-20.0pt;mso-list:l0 level2 lfo1'><![if !supportLists]><span lang=EN-US><span style='mso-list:Ignore'>C.<span style='font:7.0pt "Times New Roman"'>      </span></span></span><![endif]><span lang=EN-US>cursor_surface.commit<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US><o:p> </o:p></span></p><p class=MsoNormal><span lang=EN-US>I think this can cover up a scenario when pointer enters into a surface of client.<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US>If there is no specific cursor for client to want when pointer enters, it¡¯s enough to request set_cursor(null).<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US><o:p> </o:p></span></p><p class=MsoNormal><span lang=EN-US>Is this approach possible? I want to listen your opinions.<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US><o:p> </o:p></span></p><p class=MsoNormal><span lang=EN-US>Thanks.<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US>Elvis.<o:p></o:p></span></p></div></body></html>