guile-user
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: X11 bindings and shell bindings


From: Linas Vepstas
Subject: Re: X11 bindings and shell bindings
Date: Thu, 18 Sep 2008 14:37:13 -0500

2008/9/18 Andy Wingo <address@hidden>:
> On Thu 18 Sep 2008 14:38, "Ishan Arora" <address@hidden> 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 via email to

[Prev in Thread] Current Thread [Next in Thread]