From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: David Reitter Newsgroups: gmane.emacs.devel Subject: dragging between frames? Date: Fri, 24 Oct 2008 17:22:51 -0400 Message-ID: <3477C335-F897-4CBA-90EF-D3D98F586427@gmail.com> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 (Apple Message framework v929.2) Content-Type: text/plain; charset=US-ASCII; format=flowed; delsp=yes Content-Transfer-Encoding: 7bit X-Trace: ger.gmane.org 1224883395 20764 80.91.229.12 (24 Oct 2008 21:23:15 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Fri, 24 Oct 2008 21:23:15 +0000 (UTC) Cc: Nathaniel Cunningham To: Emacs-Devel devel Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Fri Oct 24 23:24:15 2008 connect(): Connection refused Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1KtU8g-0003D7-BS for ged-emacs-devel@m.gmane.org; Fri, 24 Oct 2008 23:24:10 +0200 Original-Received: from localhost ([127.0.0.1]:56258 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1KtU7a-0005bJ-Jj for ged-emacs-devel@m.gmane.org; Fri, 24 Oct 2008 17:23:02 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1KtU7W-0005bE-TQ for emacs-devel@gnu.org; Fri, 24 Oct 2008 17:22:58 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1KtU7U-0005au-Cs for emacs-devel@gnu.org; Fri, 24 Oct 2008 17:22:57 -0400 Original-Received: from [199.232.76.173] (port=44482 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1KtU7U-0005ar-7c for emacs-devel@gnu.org; Fri, 24 Oct 2008 17:22:56 -0400 Original-Received: from wx-out-0506.google.com ([66.249.82.227]:55857) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1KtU7T-0003fo-WD for emacs-devel@gnu.org; Fri, 24 Oct 2008 17:22:56 -0400 Original-Received: by wx-out-0506.google.com with SMTP id s15so523371wxc.24 for ; Fri, 24 Oct 2008 14:22:54 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:message-id:from:to :content-type:content-transfer-encoding:mime-version:subject:date:cc :x-mailer; bh=9GWQx5cG3uMVIqIQ5gqavWHWEZJQplecZzc9zf63IlM=; b=XoE51ULfxvFsem0nkj9D7CNx8TNqNtgKGKDxAjCD2Nobcjb59fl4A6c/3jgQRjfzAl 6/DP+U622Pg4e92OTAMF8n+TgFCJd5gAnGTy4spsOm5Yvx7v2nB6+d7ioHhrhM7v/McW kKhuSD7v7rvzaf6Z1lIW82pTyJLthCws5anik= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:from:to:content-type:content-transfer-encoding :mime-version:subject:date:cc:x-mailer; b=dqFLKiT3TfIRo9w2ZyJw7C0Pz1a/08fjO6jWEhESvJsJjae9f2+JHwcFA7GKpYKc0L 8ScNZW9QB9gsOFg46iXNTdJTFveTsR3ihz5I67SLJwO0IF9KSZk917ohyjpjvHDb+0LQ lwHyRHTdm3pso+Qu3EDaB/IJS1B2kQZWsEQ7c= Original-Received: by 10.90.35.9 with SMTP id i9mr1496005agi.74.1224883374290; Fri, 24 Oct 2008 14:22:54 -0700 (PDT) Original-Received: from SCARLETT.PSY.CMU.EDU (SCARLETT.PSY.CMU.EDU [128.2.249.106]) by mx.google.com with ESMTPS id c78sm534220hsa.17.2008.10.24.14.22.52 (version=TLSv1/SSLv3 cipher=RC4-MD5); Fri, 24 Oct 2008 14:22:53 -0700 (PDT) X-Mailer: Apple Mail (2.929.2) X-detected-operating-system: by monty-python.gnu.org: GNU/Linux 2.6 (newer, 2) X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:104965 Archived-At: How does one recognize the target frame/window of a "drag" action? We've been trying to track the mouse using something like this: (track-mouse (while (print (read-event))) ... which always returns an event that is relative to the selected frame, rather than the one the mouse is over. This does not yield desired results when the window manager does not automatically switch focus. It seems that there is no way to find out where the mouse is unless it is over a selected frame. (mouse-position) and (mouse-pixel-position) always return a value that is relative to the origin of the selected frame, and there seems to be no function that would return the window underneath the mouse or at given global pixel coordinates. I can probably hack something together to fix our specific problem with dragging and dropping on Carbon, but that wouldn't be the general solution that would work on other systems. Shouldn't there be a general way to do this? Thanks in advance for your comments.