From: Drew Adams <drew.adams@oracle.com>
To: 18657@debbugs.gnu.org
Subject: bug#18657: 24.4.50; positioning frames on multi-monitor displays
Date: Tue, 7 Oct 2014 14:18:13 -0700 (PDT) [thread overview]
Message-ID: <539e4d69-89e1-4be0-8c33-3f916400fbdc@default> (raw)
In-Reply-To: <9a22e7a5-0b06-4ca3-8698-11dfebd8e62d@default>
As an update, the OP who reported the issue to me confirms that he
is using MS Windows (I thought he was not). And he sent me this
info from his setup:
(frame-parameters):
((tool-bar-position . top) (parent-id) (explicit-name) (display . "w32") (visibility . t) (icon-name) (window-id . "459396") (top . 11) (left + -1249) (buried-buffer-list) (buffer-list #<buffer *Messages*> #<buffer *Minibuf-1*> #<buffer procedure-codes.org> #<buffer *Agenda Commands*> #<buffer *Org Agenda(w)*> #<buffer work-log.org>) (unsplittable) ...
M-x maximize-frame
(frame-parameters):
((tool-bar-position . top) (parent-id) (explicit-name) (display . "w32") (visibility . t) (icon-name) (window-id . "459396") (top . 0) (left . 0) (buried-buffer-list) (buffer-list #<buffer *Messages*> #<buffer *Minibuf-1*> #<buffer procedure-codes.org> #<buffer *Agenda Commands*> #<buffer *Org Agenda(w)*> #<buffer work-log.org>) (unsplittable) ...)
M-x restore-frame
((tool-bar-position . top) (parent-id) (explicit-name) (display . "w32") (visibility . t) (icon-name) (window-id . "459396") (top . 11) (left + -1249) (buried-buffer-list) (buffer-list #<buffer *Messages*> #<buffer *Minibuf-1*> #<buffer procedure-codes.org> #<buffer *Agenda Commands*> #<buffer *Org Agenda(w)*> #<buffer work-log.org>) (unsplittable) ...)
Based on that, I've sent him an updated version of `maximize-frame'
(from `frame-cmds.el'), which differs only in not using (0,0) as the
position coordinates systematically. Instead, it uses this:
(nth 1 (assq 'workarea (frame-monitor-attributes frame))) ; For left
(nth 2 (assq 'workarea (frame-monitor-attributes frame))) ; For right
Andy, perhaps you could try that?
[I'm assuming that the `workarea' and `geometry' values are, in order:
LEFT TOP, WIDTH HEIGHT.
FWIW, The doc of `display-monitor-attributes-list' refers to them as
X Y WIDTH HEIGHT, and the doc of `frame-monitor-attributes' refers to
the `d-m-a-l' doc. Not so clear (What are X and Y? What units for
WIDTH and HEIGHT?), but better than nothing.
(BTW, if these essentially follow the `geometry' X Window spec, why
is the order changed from what is used for that?)]
next prev parent reply other threads:[~2014-10-07 21:18 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2014-10-07 18:29 bug#18657: 24.4.50; positioning frames on multi-monitor displays Drew Adams
2014-10-07 21:18 ` Drew Adams [this message]
2014-10-07 23:56 ` Drew Adams
2021-07-13 22:00 ` bug#18637: " Lars Ingebrigtsen
2021-07-13 22:20 ` bug#18657: [External] : " Drew Adams
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=539e4d69-89e1-4be0-8c33-3f916400fbdc@default \
--to=drew.adams@oracle.com \
--cc=18657@debbugs.gnu.org \
/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.