<html>
  <head>
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
  </head>
  <body>
    <p>You can write a function which uses XTestCompareCursor in a
      switch which tests known cursor id (top_left_corner,
      h_double_arrow,...)<code><br>
      </code></p>
    <div class="moz-cite-prefix">Le 19/11/2020 à 19:59, Ivan Svirid a
      écrit :<br>
    </div>
    <blockquote type="cite"
cite="mid:CAG-EYCjs62894DpAzmQn_juJJ9a6BTpQ8QOhYhxTWbjDPN5K5g@mail.gmail.com">
      <meta http-equiv="content-type" content="text/html; charset=UTF-8">
      <div dir="ltr">Yea but this only returns true/false it does not
        return the cursor_id.</div>
      <br>
      <div class="gmail_quote">
        <div dir="ltr" class="gmail_attr">On Thu, Nov 19, 2020 at 10:26
          AM Lucien Gentis <<a
            href="mailto:lucien.gentis@univ-lorraine.fr"
            moz-do-not-send="true">lucien.gentis@univ-lorraine.fr</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">
          <div>
            <p>Hello,</p>
            <p>Perhaps you should look at XTest extension : <a
                href="https://www.x.org/releases/X11R7.7/doc/xextproto/xtest.html"
                target="_blank" moz-do-not-send="true">https://www.x.org/releases/X11R7.7/doc/xextproto/xtest.html</a></p>
            <p>See <code>XTestCompareCursor function<br>
              </code></p>
            <div>Le 04/11/2020 à 19:25, Ivan Svirid a écrit :<br>
            </div>
            <blockquote type="cite">
              <div dir="ltr">So XSetWindowAttributes allows you to set
                the cursor on the window, basically this is the hardware
                cursor when your mouse enters the window that is
                displayed.  <br>
                <br>
                Is there a way to readback this value from an existing
                window? Or perhaps another workaround to get the cursor
                on a specific window?<br>
                <br>
                I am aware there is XFixesSelectCursorInput but this
                listens for changes and grabs the current system cursor;
                not on a per window basis.<br>
                <br>
                <br>
              </div>
              <br>
              <fieldset></fieldset>
              <pre>_______________________________________________
<a href="mailto:xorg@lists.x.org" target="_blank" moz-do-not-send="true">xorg@lists.x.org</a>: X.Org support
Archives: <a href="http://lists.freedesktop.org/archives/xorg" target="_blank" moz-do-not-send="true">http://lists.freedesktop.org/archives/xorg</a>
Info: <a href="https://lists.x.org/mailman/listinfo/xorg" target="_blank" moz-do-not-send="true">https://lists.x.org/mailman/listinfo/xorg</a>
Your subscription address: %(user_address)s
</pre>
            </blockquote>
          </div>
        </blockquote>
      </div>
    </blockquote>
  </body>
</html>