From: Fran Litterio <flitterio@gmail.com>
To: emacs-devel@gnu.org
Subject: Re: Bug in function x_calc_absolute_positionin xterm.c and w32term.c
Date: Tue, 30 Jun 2015 13:42:17 +0000 (UTC) [thread overview]
Message-ID: <loom.20150630T153529-40@post.gmane.org> (raw)
In-Reply-To: loom.20150623T175914-383@post.gmane.org
I wrote:
> Using the latest sources, I see the following behavior on a machine
> with two 1920x1080 monitors arranged side-by-side:
>
> $ runemacs.exe -Q
...
> (setq f (make-frame '((left . -1))))
> #<frame emacs <at> IZSYSTEM023 015257f0>
> (frame-parameter f 'left)
> 3155
>
> The left offset of the new frame appears to be 1920 pixels too far
> to the right. Evaluating the following form positions the frame to
> its expected location (abutting the right edge of the rightmost
> monitor):
>
> (set-frame-position f (- 3155 1920) 0)
I've learned that this only happen when the 2nd monitor is positioned
to the left of the primary Windows monitor, resulting in negative
X offsets for frames on the 2nd monitor. If I configure Windows to
position the 2nd monitor to the right of the primary monitor, all
X offsets are positive, and the first form above works as expected
(the new frame abuts the far right edge of the combined monitors).
I still believe the fix should be made in x_calc_absolute_position, but
it must now take into consideration whether X offset 0 is within the
multi-monitor display or at the far left edge.
I still hope to create a patch to fix this problem.
--
Fran Litterio
flitterio@gmail.com
prev parent reply other threads:[~2015-06-30 13:42 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-06-23 16:12 Bug in function x_calc_absolute_position in xterm.c and w32term.c Fran Litterio
2015-06-30 13:42 ` Fran Litterio [this message]
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=loom.20150630T153529-40@post.gmane.org \
--to=flitterio@gmail.com \
--cc=emacs-devel@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.