emacs-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Coordinates and Windows


From: Eli Zaretskii
Subject: Re: Coordinates and Windows
Date: Fri, 17 Jul 2015 21:10:07 +0300

> Date: Fri, 17 Jul 2015 19:58:12 +0200
> From: martin rudalics <address@hidden>
> CC: address@hidden
> 
>  > Why does it matter if we get that accurately, in builds where we don't
>  > manage those decorations?  We might as well approximate that with some
>  > reasonable value, and be done, no?
> 
> For example, on Windows I need accurate dimensions of decorations to
> emulate fullheight and fullwidth fullscreen modes.

What do you mean by "emulate"?  AFAIK, these are supported on Windows
without any need for emulation.

> And if I want to display a tooltip at a certain position within a
> window I need them as well.

Why do you need _frame_ relative coordinates to display something at
_window_ relative position?

>  >> This would imply that the tool bar (and maybe even the menu bar) are
>  >> part of the root window.
>  >
>  > Which on Windows, it is, AFAIK.
> 
> No.  The root window is beneath the tool bar window separated from the
> latter by the internal border.

Strange.

>  >>   >> BTW, has Windows 7 an 8 pixel wide border by default?
>  >>   >
>  >>   > How can I know?
>  >>
>  >> What does M-: (x-frame-geometry) give for you?
>  >
>  > This is on XP:
>  >
>  >    ((frame-position -4 . -4) (frame-outer-size 1928 . 1088) 
> (external-border-size 4 . 4) (title-height . 19) (menu-bar-external . t) 
> (menu-bar-size 1920 . 19) (tool-bar-external) (tool-bar-position . top) 
> (tool-bar-size 1920 . 36) (frame-inner-size 1920 . 1042))
> 
> This doesn't help me to find out why your `window-absolute-pixel-edges'
> returns (-8 28 1912 984) on Windows 7.  I need your value for Windows 7.

Will report when I have a chance.



reply via email to

[Prev in Thread] Current Thread [Next in Thread]