From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: hjuvi Newsgroups: gmane.emacs.help Subject: Mouse position is wrong on some desktop Date: Wed, 6 Apr 2011 02:49:52 -0700 (PDT) Organization: http://groups.google.com Message-ID: <5a33754d-22d0-4219-ada7-86e32e3a0113@r6g2000vbz.googlegroups.com> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 X-Trace: dough.gmane.org 1302184873 27862 80.91.229.12 (7 Apr 2011 14:01:13 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Thu, 7 Apr 2011 14:01:13 +0000 (UTC) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Thu Apr 07 16:01:09 2011 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1Q7plk-0008PM-Lw for geh-help-gnu-emacs@m.gmane.org; Thu, 07 Apr 2011 16:01:08 +0200 Original-Received: from localhost ([127.0.0.1]:56408 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Q7plj-0003nP-OF for geh-help-gnu-emacs@m.gmane.org; Thu, 07 Apr 2011 10:01:08 -0400 Original-Path: usenet.stanford.edu!postnews.google.com!r6g2000vbz.googlegroups.com!not-for-mail Original-Newsgroups: gnu.emacs.help Original-Lines: 20 Original-NNTP-Posting-Host: 82.124.136.87 Original-X-Trace: posting.google.com 1302083392 25291 127.0.0.1 (6 Apr 2011 09:49:52 GMT) Original-X-Complaints-To: groups-abuse@google.com Original-NNTP-Posting-Date: Wed, 6 Apr 2011 09:49:52 +0000 (UTC) Complaints-To: groups-abuse@google.com Injection-Info: r6g2000vbz.googlegroups.com; posting-host=82.124.136.87; posting-account=IiLCJgoAAAD0xOHhzuJAhU8es3tVRnZ4 User-Agent: G2/1.0 X-HTTP-UserAgent: Mozilla/5.0 (X11; U; Linux i686; fr; rv:1.9.2.13) Gecko/20101206 Ubuntu/10.04 (lucid) Firefox/3.6.13,gzip(gfe) Original-Xref: usenet.stanford.edu gnu.emacs.help:186514 X-Mailman-Approved-At: Thu, 07 Apr 2011 09:58:26 -0400 X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.help:80663 Archived-At: Hi, On mouse clicks, I want to go to the line on which mouse was clicked. On left click, this is easy : current line is updated. On right click, I have to use this : (move-to-window-line (cdr (last (mouse-position)))) It worked fine for a long time... I had noticed that the line was wrong (one line shift) on Windows, but I stopped supporting Windows (for many other reasons ;)) My problem is that today, someone running on KDE desktop is using my code, and the line is wrong (one line shift, the same as with Windows). I run on Gnome desktop. I'm not sure this is particularly due to KDE (it used to work on KDE). Any idea, why mouse-position does not return correct line, depending on the desktop (or maybe something else...) ? Thanks for your help...