all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: hjuvi <hjuvi-google@yahoo.fr>
To: help-gnu-emacs@gnu.org
Subject: Mouse position is wrong on some desktop
Date: Wed, 6 Apr 2011 02:49:52 -0700 (PDT)	[thread overview]
Message-ID: <5a33754d-22d0-4219-ada7-86e32e3a0113@r6g2000vbz.googlegroups.com> (raw)

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...


                 reply	other threads:[~2011-04-06  9:49 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=5a33754d-22d0-4219-ada7-86e32e3a0113@r6g2000vbz.googlegroups.com \
    --to=hjuvi-google@yahoo.fr \
    --cc=help-gnu-emacs@gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.