From: Francis Litterio <flitterio@gmail.com>
To: 21173@debbugs.gnu.org
Subject: bug#21173: 25.0.50; New frames positioned off screen with multiple monitors
Date: Sat, 1 Aug 2015 16:59:51 +0000 (UTC) [thread overview]
Message-ID: <loom.20150801T185600-776@post.gmane.org> (raw)
In-Reply-To: <874mkjadqx.fsf@gmail.com>
martin rudalics <rudalics <at> gmx.at> writes:
>
> > Function x_calc_absolute_position does not account for the fact
> > that my left monitor's left offsets are negative. I believe that
> > is the root of the bug.
>
> If `display-monitor-attributes-list' returns the correct geometry
values
> it shouldn't be too hard to fix this.
Thanks, Martin. I see display-monitor-attributes-list return
this value:
(((geometry 0 0 1920 1080)
(workarea 0 0 1920 1080)
(mm-size 677 381)
(name . "\\\\.\\DISPLAY1")
(frames #<frame emacs - Izsystem023 - *Buffer List* 06e2fad8>))
((geometry -1920 0 1920 1080)
(workarea -1920 0 1920 1080)
(mm-size 677 381)
(name . "\\\\.\\DISPLAY2")
(frames)))
Note the "-1920" in the info for DISPLAY2. So I think all
the information is there to fix this.
> That is, after the final
> calculation of f->left_pos in x_calc_absolute_position subtract from
it
> the value (if negative) of whatever
w32_display_monitor_attributes_list
> returns as first value in `geometry' and from f->top_pos the second
> value.
I could do this in pure Elisp, but x_calc_absolute_position is
written in C, and I'm weak at using Elisp functions and objects
from C. I'll give it a try and re-test. If I get something
working, I'll post the patch here for review.
--
Fran
next prev parent reply other threads:[~2015-08-01 16:59 UTC|newest]
Thread overview: 24+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-08-01 3:28 bug#21173: 25.0.50; New frames positioned off screen with multiple monitors Francis Litterio
2015-08-01 10:51 ` martin rudalics
2015-08-01 15:03 ` Francis Litterio
2015-08-01 15:49 ` martin rudalics
2015-08-01 16:59 ` Francis Litterio [this message]
2015-08-03 6:47 ` martin rudalics
2015-08-03 20:35 ` Andy Moreton
2015-08-03 21:12 ` Glenn Morris
2015-08-04 16:31 ` Fran Litterio
2015-09-08 22:26 ` Andy Moreton
2015-10-06 7:57 ` martin rudalics
2015-10-07 16:50 ` Fran
2015-10-21 18:57 ` Francis Litterio
2015-10-21 23:37 ` Andy Moreton
2015-10-22 6:39 ` martin rudalics
2015-10-27 21:53 ` Andy Moreton
2015-10-28 9:55 ` martin rudalics
2015-10-28 14:13 ` Andy Moreton
2015-10-28 15:52 ` Eli Zaretskii
2015-10-28 17:25 ` Andy Moreton
2015-10-28 18:08 ` Eli Zaretskii
2015-10-28 19:21 ` martin rudalics
2015-10-28 19:39 ` Andy Moreton
2015-10-29 7:57 ` martin rudalics
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.20150801T185600-776@post.gmane.org \
--to=flitterio@gmail.com \
--cc=21173@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.