all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Andreas Politz <politza@hochschule-trier.de>
To: "Jan Djärv" <jan.h.d@swipnet.se>
Cc: 5721@debbugs.gnu.org
Subject: bug#5721: Feature request: Function that returns absolute coordinates
Date: Sun, 29 Sep 2013 19:21:29 +0200	[thread overview]
Message-ID: <87eh87tug6.fsf@hochschule-trier.de> (raw)
In-Reply-To: <4A35A160-E728-4617-A65E-D79EC75B88D2@swipnet.se> ("Jan Djärv"'s message of "Sun, 29 Sep 2013 18:05:43 +0200")

Jan Djärv <jan.h.d@swipnet.se> writes:

>> This is known to be wrong.  For example, if some Gtk+ version does
>> create separate X windows [...]

So, it depends on the toolkit and in some cases the tool-kit's version.

> Forgot to mention that the window manager window that the title bar is
> drawn in does not need to be a parent of any Emacs X window.  In that
> case you can not get the size of the decorations at all.
>

,,does not need'' does not mean that any window manager does this.  Care
to give an example ?  

Also the size of the decoration doesn't really matter, as long as we can
figure out the difference between the absolute frame position and the
start of the edit window.  Or could it also be possible, that the
frame's absolute position (left, top) does point to the coordinates of a
window of which the inner Emacs window is not a child ?


>>> [...]  Anyway the only problem I sometimes ran into is a race
>>> condition, resulting in y_pixels_diff being to small.  But this is only
>>> temporarily [...]

>> Race conditions are common when a window manager is involved.
>> Another reason to keep pixels private and not export them to Elisp.

Just something that has to be dealt with.

Either way the function exists and we can try to fix it or remove it.  I
don't see what purpose it serves in it's current state.

The request came from the author of auto-complete, a package which
displays completion candidates and their documentation with overlays and
tool-tips at point.  I'd like to see this move forward and, in the end,
use undecorated frames instead.  Without this function, this is
impossible without external programs.  BTW any other recent editor does this
(e.g. http://cdn3.cybernetnews.com/wp-content/uploads/2008/06/notepad-5.png),
so I doubt that it's 'impossible'.

-ap

P.S.: I tried the patch on a bare --with-x-toolkit=no build and it seems
to give the correct values.







  reply	other threads:[~2013-09-29 17:21 UTC|newest]

Thread overview: 68+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2010-03-15 14:33 bug#5721: Feature request: Function that returns absolute coordinates IRIE Shinsuke
2010-03-30 17:50 ` Jan Djärv
2010-05-31 10:28   ` IRIE Shinsuke
2010-06-01  1:16     ` YAMAMOTO Mitsuharu
2010-07-02  2:10       ` YAMAMOTO Mitsuharu
2010-07-02  7:06         ` Jan Djärv
2010-07-02  9:15           ` YAMAMOTO Mitsuharu
2010-07-14 15:22             ` Jan Djärv
2010-07-15  0:17               ` YAMAMOTO Mitsuharu
2010-07-15  6:07                 ` Jan Djärv
2010-07-15  6:49                   ` YAMAMOTO Mitsuharu
2010-07-15  7:50                     ` Jan Djärv
2010-07-15  7:59                       ` YAMAMOTO Mitsuharu
2010-07-15  8:06                         ` Jan Djärv
2010-07-15  8:18                           ` YAMAMOTO Mitsuharu
2010-07-15  8:35                             ` Jan Djärv
2010-07-15  8:44                               ` YAMAMOTO Mitsuharu
2010-07-15  8:59                                 ` Jan Djärv
2010-07-15  9:27                                   ` YAMAMOTO Mitsuharu
2010-07-15  9:35                                     ` Jan Djärv
2010-07-15  9:38                                       ` YAMAMOTO Mitsuharu
2010-07-15 10:32                                         ` Jan Djärv
2010-07-16  0:25                                           ` YAMAMOTO Mitsuharu
2010-07-16  6:39                                             ` Jan Djärv
2010-07-16  9:14                                               ` YAMAMOTO Mitsuharu
2010-07-16 12:20                                                 ` Jan Djärv
2010-07-15  9:57                                       ` YAMAMOTO Mitsuharu
2010-07-15 10:56                                         ` Jan Djärv
2010-07-16  0:35                                           ` YAMAMOTO Mitsuharu
2010-07-16  6:38                                             ` Jan Djärv
2010-07-16  8:37                                               ` YAMAMOTO Mitsuharu
2010-07-16  8:49                                                 ` Jan Djärv
2010-07-16  8:58                                                   ` YAMAMOTO Mitsuharu
2010-07-16 12:19                                                     ` Jan Djärv
2010-07-17  0:30                                                       ` YAMAMOTO Mitsuharu
2010-07-17  5:32                                                         ` YAMAMOTO Mitsuharu
2010-07-17  8:37                                                           ` Jan Djärv
2010-07-17  8:42                                                             ` YAMAMOTO Mitsuharu
2010-07-01 12:37 ` Jan Djärv
2010-07-01 16:52   ` bug#5721: Feature request: Function that returnsabsolute coordinates Drew Adams
2010-07-01 17:20     ` Jan Djärv
2010-07-01 17:27       ` Drew Adams
2010-07-01 18:26         ` Jan Djärv
2010-07-01 18:52           ` Drew Adams
2010-07-01 20:08           ` Juanma Barranquero
2010-07-01 22:05           ` Lennart Borgman
     [not found]   ` <87r5jn148f.wl%irieshinsuke@yahoo.co.jp>
2010-07-01 18:14     ` bug#5721: Feature request: Function that returns absolute coordinates Jan Djärv
2010-07-02  0:33 ` MON KEY
2013-09-28 20:06 ` Andreas Politz
2013-09-29 10:26   ` martin rudalics
2013-09-29 15:41     ` Andreas Politz
2013-09-29 16:02       ` Jan Djärv
2013-09-29 16:05         ` Jan Djärv
2013-09-29 17:21           ` Andreas Politz [this message]
2013-09-29 18:09             ` Jan Djärv
2013-09-29 18:47             ` martin rudalics
2013-09-29 18:47         ` martin rudalics
2013-09-29 20:10           ` Jan Djärv
2013-10-03 17:25             ` Andreas Politz
2013-10-03 20:25               ` Eli Zaretskii
2013-10-03 21:09                 ` Andreas Politz
2013-10-04  6:47                   ` Eli Zaretskii
2013-10-04  8:28                     ` Andreas Politz
2013-10-04  8:55                       ` Eli Zaretskii
2013-10-04 10:33                         ` Andreas Politz
2013-09-29 18:46       ` martin rudalics
2013-09-29 20:25         ` Andreas Politz
2013-09-29 15:59     ` Jan Djärv

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=87eh87tug6.fsf@hochschule-trier.de \
    --to=politza@hochschule-trier.de \
    --cc=5721@debbugs.gnu.org \
    --cc=jan.h.d@swipnet.se \
    /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.