all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* Mouse position is wrong on some desktop
@ 2011-04-06  9:49 hjuvi
  0 siblings, 0 replies; only message in thread
From: hjuvi @ 2011-04-06  9:49 UTC (permalink / raw
  To: help-gnu-emacs

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


^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2011-04-06  9:49 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-04-06  9:49 Mouse position is wrong on some desktop hjuvi

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.