[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 16:09:43 +0300 |
> Date: Thu, 16 Jul 2015 20:23:06 +0200
> From: martin rudalics <address@hidden>
> CC: address@hidden
>
> > I don't see why. Having the top-left corner of the frame as the
> > reference point sounds simpler and more clear to me, and allows one to
> > use it in the same way in all the builds. No?
>
> If by top-left corner you intend the top-left position of the menu bar,
> or if that's absent that of the top/left tool bar, or if that's absent
> too that of the internal border, or if that is absent too that of the
> root window
Yes.
> I agree. Just that it's not all too trivial to calculate it.
In pixels or in rows?
> >> To illustrate how little care has been applied to this so far, consider
> >> the function `window-absolute-pixel-edges'. With a maximized frame on
> >> Windows XP this function returns (-4 -4 1676 964) here.
> >
> > I get (-8 28 1912 984) on Windows 7 and (-4 32 1916 1022) on XP, so at
> > least the Y coordinate seems OK.
>
> Just 32 pixels for title, menu, and tool bar?
Maybe I'm confused, but doesn't that include only the title and menu
on Windows? Or maybe just the title?
> BTW, has Windows 7 an 8 pixel wide border by default?
How can I know?
> No, off-screen decorations are a Windows feature. What I meant is that
> Gtk has some established, working features that albeit never worked on
> Windows. And I'm afraid to break these features.
Isn't that what development is about -- breaking features and then
fixing the breakage?
- Coordinates and Windows, martin rudalics, 2015/07/15
- Re: Coordinates and Windows, Eli Zaretskii, 2015/07/15
- Re: Coordinates and Windows, martin rudalics, 2015/07/15
- Re: Coordinates and Windows, Eli Zaretskii, 2015/07/15
- Re: Coordinates and Windows, martin rudalics, 2015/07/16
- Re: Coordinates and Windows, Eli Zaretskii, 2015/07/16
- Re: Coordinates and Windows, martin rudalics, 2015/07/16
- Re: Coordinates and Windows,
Eli Zaretskii <=
- Re: Coordinates and Windows, martin rudalics, 2015/07/17
- Re: Coordinates and Windows, Eli Zaretskii, 2015/07/17
- RE: Coordinates and Windows, Drew Adams, 2015/07/17
- Re: Coordinates and Windows, martin rudalics, 2015/07/17
- RE: Coordinates and Windows, Drew Adams, 2015/07/17
- Re: Coordinates and Windows, martin rudalics, 2015/07/18
- Re: Coordinates and Windows, Eli Zaretskii, 2015/07/19
- Re: Coordinates and Windows, martin rudalics, 2015/07/20
- Re: Coordinates and Windows, martin rudalics, 2015/07/17
- Re: Coordinates and Windows, Eli Zaretskii, 2015/07/17