From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Paulie Pena IV Newsgroups: gmane.emacs.bugs Subject: bug#18303: Drag and Drop fails when Emacs window/frame is above top Date: Wed, 20 Aug 2014 08:50:03 -0400 Message-ID: NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: multipart/alternative; boundary=20cf301af45323189505010f0cce X-Trace: ger.gmane.org 1408549597 30406 80.91.229.3 (20 Aug 2014 15:46:37 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Wed, 20 Aug 2014 15:46:37 +0000 (UTC) To: 18303@debbugs.gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Wed Aug 20 17:46:30 2014 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1XK85e-0003AS-Vv for geb-bug-gnu-emacs@m.gmane.org; Wed, 20 Aug 2014 17:46:23 +0200 Original-Received: from localhost ([::1]:56348 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XK85e-0007Ix-MI for geb-bug-gnu-emacs@m.gmane.org; Wed, 20 Aug 2014 11:46:22 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:33626) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XK85N-00074a-VK for bug-gnu-emacs@gnu.org; Wed, 20 Aug 2014 11:46:06 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1XK85M-0006fb-VL for bug-gnu-emacs@gnu.org; Wed, 20 Aug 2014 11:46:05 -0400 Original-Received: from debbugs.gnu.org ([140.186.70.43]:41390) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XK85M-0006fX-S6 for bug-gnu-emacs@gnu.org; Wed, 20 Aug 2014 11:46:04 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.80) (envelope-from ) id 1XK85M-00005X-BB for bug-gnu-emacs@gnu.org; Wed, 20 Aug 2014 11:46:04 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Paulie Pena IV Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Wed, 20 Aug 2014 15:46:04 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 18303 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: X-Debbugs-Original-To: bug-gnu-emacs@gnu.org Original-Received: via spool by submit@debbugs.gnu.org id=B.140854954932740 (code B ref -1); Wed, 20 Aug 2014 15:46:04 +0000 Original-Received: (at submit) by debbugs.gnu.org; 20 Aug 2014 15:45:49 +0000 Original-Received: from localhost ([127.0.0.1]:48329 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1XK856-0008Vz-D1 for submit@debbugs.gnu.org; Wed, 20 Aug 2014 11:45:49 -0400 Original-Received: from eggs.gnu.org ([208.118.235.92]:51846) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1XK5LU-0004Bo-FV for submit@debbugs.gnu.org; Wed, 20 Aug 2014 08:50:33 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1XK5LO-00072S-E8 for submit@debbugs.gnu.org; Wed, 20 Aug 2014 08:50:27 -0400 Original-Received: from lists.gnu.org ([2001:4830:134:3::11]:35583) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XK5LO-00072E-Aw for submit@debbugs.gnu.org; Wed, 20 Aug 2014 08:50:26 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:53557) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XK5LN-0006Du-Ds for bug-gnu-emacs@gnu.org; Wed, 20 Aug 2014 08:50:26 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1XK5LM-0006z7-K6 for bug-gnu-emacs@gnu.org; Wed, 20 Aug 2014 08:50:25 -0400 Original-Received: from mail-yk0-x22c.google.com ([2607:f8b0:4002:c07::22c]:35642) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XK5LM-0006xX-Fk for bug-gnu-emacs@gnu.org; Wed, 20 Aug 2014 08:50:24 -0400 Original-Received: by mail-yk0-f172.google.com with SMTP id 10so6570132ykt.3 for ; Wed, 20 Aug 2014 05:50:23 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:from:date:message-id:subject:to:content-type; bh=E5COYmGifx23A2XoVflsxiklcHC3xhrO4N5In7dXYqI=; b=xbWDVtYAA6gOSzGLyhgzKV0rSXRbfpTzhs4Tr4maj6JbLJamg7HEMOZaRO93jpMr3e dk0m7ltPZ+6cPw84QRDkpUzkt/Z6AFKiGm9UtSX1CCukB3mjc7ULZAIoRoCA/6RdVMvR 1nt6EuE4GQR3oMfAM8ytWYtqEMlmP3Q1G8EAyLur+4w2UjXJEryxFMzK9mEdZR5sRA4q /DXAmOQ0XM38pwl67HIw9zeuRTfMqzeA4rkHU6v0ORJ0CNTFKIddpyc8N7JtXV/pZ94S HjQX31+PJnohWcMLv9QhPOU8l6ESJpJtFpW+aHdyEKeN4/OSS2JRoNfJOcYKQsVy59hp gshw== X-Received: by 10.236.102.70 with SMTP id c46mr233666yhg.194.1408539023315; Wed, 20 Aug 2014 05:50:23 -0700 (PDT) Original-Received: by 10.170.100.65 with HTTP; Wed, 20 Aug 2014 05:50:03 -0700 (PDT) X-detected-operating-system: by eggs.gnu.org: Error: Malformed IPv6 address (bad octet value). X-detected-operating-system: by eggs.gnu.org: Error: Malformed IPv6 address (bad octet value). X-Mailman-Approved-At: Wed, 20 Aug 2014 11:45:47 -0400 X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.15 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 3.x X-Received-From: 140.186.70.43 X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.bugs:92540 Archived-At: --20cf301af45323189505010f0cce Content-Type: text/plain; charset=UTF-8 If my Emacs window is above the top of my screen (which is how I usually have it since I don't care about the title bar, etc.), I cannot drag a file onto the top part of the Emacs window/frame. If I try to, I get this error: Not an in-range integer, float, or cons of integers I traced the problem to the "XdndPosition" cond in x-dnd-handle-xdnd, which calls x-send-client-message. The "list-to-send" variable has a negative y value, which it gets from x-dnd-get-drop-x-y. I think the way to fix this is to change x-send-client-message so it accepts negative x/y values, but I'm not sure if that's correct. Thanks, Paulie --20cf301af45323189505010f0cce Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable
If my Emacs window is above the top of my screen (which is= how I usually have it since I don't care about the title bar, etc.), I= cannot drag a file onto the top part of the Emacs window/frame. If I try t= o, I get this error:
Not an in-range integer, float, or cons of integers

I traced the problem to the "XdndPosition" cond in=C2=A0x-d= nd-handle-xdnd, which calls=C2=A0x-send-client-message. The "list-to-s= end" variable has a negative y value, which it gets from=C2=A0x-dnd-ge= t-drop-x-y. I think the way to fix this is to change x-send-client-message = so it accepts negative x/y values, but I'm not sure if that's corre= ct.

Thanks,
Paulie
--20cf301af45323189505010f0cce--