From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: "Linas Vepstas" Newsgroups: gmane.lisp.guile.user Subject: Re: X11 bindings and shell bindings Date: Thu, 18 Sep 2008 14:37:13 -0500 Message-ID: <3ae3aa420809181237w582e99ecp3ba82ef7ac4f4e16@mail.gmail.com> References: <59ea12330809180538u6f7d7a42gdfef60909ad96157@mail.gmail.com> Reply-To: linasvepstas@gmail.com NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-Trace: ger.gmane.org 1221766659 26908 80.91.229.12 (18 Sep 2008 19:37:39 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Thu, 18 Sep 2008 19:37:39 +0000 (UTC) Cc: Guile User Mailing List To: "Andy Wingo" Original-X-From: guile-user-bounces+guile-user=m.gmane.org@gnu.org Thu Sep 18 21:38:33 2008 Return-path: Envelope-to: guile-user@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1KgPKi-0008EQ-23 for guile-user@m.gmane.org; Thu, 18 Sep 2008 21:38:32 +0200 Original-Received: from localhost ([127.0.0.1]:54603 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1KgPJg-0000V4-Mv for guile-user@m.gmane.org; Thu, 18 Sep 2008 15:37:28 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1KgPJU-0000T1-HK for guile-user@gnu.org; Thu, 18 Sep 2008 15:37:16 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1KgPJT-0000PT-0F for guile-user@gnu.org; Thu, 18 Sep 2008 15:37:16 -0400 Original-Received: from [199.232.76.173] (port=46270 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1KgPJS-0000PB-S5 for guile-user@gnu.org; Thu, 18 Sep 2008 15:37:14 -0400 Original-Received: from mail-gx0-f12.google.com ([209.85.217.12]:42760) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1KgPJS-0001SC-HU for guile-user@gnu.org; Thu, 18 Sep 2008 15:37:14 -0400 Original-Received: by gxk5 with SMTP id 5so30193119gxk.18 for ; Thu, 18 Sep 2008 12:37:13 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:message-id:date:from:reply-to :to:subject:cc:in-reply-to:mime-version:content-type :content-transfer-encoding:content-disposition:references; bh=zSSw8dHKuz+1p9ux0k2MFYnt9MsWoWnIYdr5ZL1Wy58=; b=iRk4FR5yxtpGfzfO7PETtSGCD6zzT1r0Ik5CHkrXMKAeescLjmGgIqtP0MK5zGY+k/ hDgEGJQaZAPw3oWWyf/EyO0AAj5x0JN7ZoGnXR7pskUgY+sS5LeYEhOnHJzoBr11mWkW RC5tHWtqSJnsCXqrTmzm9pw+ReiXWdnPVxrGI= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:reply-to:to:subject:cc:in-reply-to :mime-version:content-type:content-transfer-encoding :content-disposition:references; b=YG5cZgbxGZbAaioe9xhiBIA5tRvqp3XQbVfRIH4AmY0SVZc+8AZmN+XOOgXZCl45aV ZdW7sQtOKEGhx7ZI7CvMmMQFja9isOB5ZeQVJVcQgM0WkzXAk9L/SD2EoPycK4besUkU 29Ze6AKqFFQLuYBopwIOEbMZfZ6ek/jkdKg0I= Original-Received: by 10.100.41.16 with SMTP id o16mr5908062ano.121.1221766633437; Thu, 18 Sep 2008 12:37:13 -0700 (PDT) Original-Received: by 10.100.207.16 with HTTP; Thu, 18 Sep 2008 12:37:13 -0700 (PDT) In-Reply-To: Content-Disposition: inline X-detected-operating-system: by monty-python.gnu.org: GNU/Linux 2.6 (newer, 2) X-BeenThere: guile-user@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: General Guile related discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: guile-user-bounces+guile-user=m.gmane.org@gnu.org Errors-To: guile-user-bounces+guile-user=m.gmane.org@gnu.org Xref: news.gmane.org gmane.lisp.guile.user:6781 Archived-At: 2008/9/18 Andy Wingo : > On Thu 18 Sep 2008 14:38, "Ishan Arora" 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