unofficial mirror of guile-user@gnu.org 
 help / color / mirror / Atom feed
From: "Linas Vepstas" <linasvepstas@gmail.com>
To: "Andy Wingo" <wingo@pobox.com>
Cc: Guile User Mailing List <guile-user@gnu.org>
Subject: Re: X11 bindings and shell bindings
Date: Thu, 18 Sep 2008 14:37:13 -0500	[thread overview]
Message-ID: <3ae3aa420809181237w582e99ecp3ba82ef7ac4f4e16@mail.gmail.com> (raw)
In-Reply-To: <m37i995m7s.fsf@pobox.com>

2008/9/18 Andy Wingo <wingo@pobox.com>:
> On Thu 18 Sep 2008 14:38, "Ishan Arora" <ishanarora@gmail.com> writes:
>
>> Is there a procedure to get mouse position.
>
> No, but it's relatively easy to write a minimal set of Xlib bindings,
> binding only the functions you need. Griddy has some bindings:

Its nuts to work with X11 directly. Its not meant for that ...
its like trying to call the linux kernel directly using syscalls
and assembly language, bypassing the C library.

Among other things, X11 will give you coords relative to the
upper left of the screen, which is almost surely not what
you want -- you want coords relative to a window, the
window in which your app will be drawing.

Use gtk or gnome or kde. Open a canvas. You can get
coords that way.

--linas




  reply	other threads:[~2008-09-18 19:37 UTC|newest]

Thread overview: 11+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2008-09-18 12:38 X11 bindings and shell bindings Ishan Arora
2008-09-18 13:52 ` Jon Wilson
2008-09-18 15:10   ` Ishan Arora
2008-09-18 17:01     ` JonWilson
2008-09-18 17:16 ` Paul Emsley
2008-09-18 18:43 ` Andy Wingo
2008-09-18 19:37   ` Linas Vepstas [this message]
2008-09-18 21:09     ` Andy Wingo
  -- strict thread matches above, loose matches on Subject: below --
2008-09-18 16:08 dsmich
2008-09-18 16:58 ` Neil Jerram
     [not found] <cmu-lmtpd-23352-1221754132-4@mail-imap1.uio.no>
2008-09-18 16:54 ` Kjetil S. Matheussen

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.gnu.org/software/guile/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=3ae3aa420809181237w582e99ecp3ba82ef7ac4f4e16@mail.gmail.com \
    --to=linasvepstas@gmail.com \
    --cc=guile-user@gnu.org \
    --cc=wingo@pobox.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).