From: "rgb" <rbielaws@i1.net>
Subject: Re: Getting display origin
Date: 8 Jun 2005 10:44:05 -0700 [thread overview]
Message-ID: <1118252645.431160.286230@g49g2000cwa.googlegroups.com> (raw)
In-Reply-To: mailman.3839.1118231061.25862.help-gnu-emacs@gnu.org
> What I need to know is what the available range of coordinates are
> that are visible on the current display. I can get the width with
> display-pixel-width, but at least on the Mac, it doesn't always start
> at 0. For example, (frame-parameter (selected-frame) 'left) can
> return something like (+ -1045) if the frame in question is on the
> left screen of a multi-screen setup (with the menu bar = origin on
> the right).
>
Well I certainly couldn't find it either but if you do there's
more problems you will need to deal with. Supplying negative
coordinates to set-frame-parameter causes the position to be
relative to the righthand side of both the frame and screen.
That is, (set-frame-parameter (selected-frame) 'left -1) puts
the inside right edge of the frame one pixel from the right edge
of the display. So on my XP machine I had to use this to get
the frame's right edge entirely within the lefthand display.
(set-frame-parameter
(selected-frame) 'left
(- (+ (display-pixel-width x-display-name)
(* 3 (frame-parameter (selected-frame) 'border-width)))))
I'm not sure how generic you want your support to be but there
is nothing that forces additional monitors to have the same size
as the primary and on my machine I can configure the secondary
display anywhere along the border of the primary display.
Meaning above, below, half way down one side... . This, along
with the monitor size being different, it's a real mess!
I also found that if my frame has negative coordinates the mouse
wheel doesn't work. I was eventually forced to rearrange my
work area to have the primary on the left. I reported the problem
as a bug but don't know if it was ever fixed. It's been months
since I've tried it.
next parent reply other threads:[~2005-06-08 17:44 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <mailman.3839.1118231061.25862.help-gnu-emacs@gnu.org>
2005-06-08 17:44 ` rgb [this message]
2005-06-10 19:25 Getting display origin David Reitter
-- strict thread matches above, loose matches on Subject: below --
2005-06-08 11:28 David Reitter
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
List information: https://www.gnu.org/software/emacs/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1118252645.431160.286230@g49g2000cwa.googlegroups.com \
--to=rbielaws@i1.net \
/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.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).