unofficial mirror of emacs-devel@gnu.org 
 help / color / mirror / code / Atom feed
From: Robert Pluim <rpluim@gmail.com>
To: martin rudalics <rudalics@gmx.at>
Cc: emacs-devel@gnu.org
Subject: Re: [PATCH] Fix frameset-restore in the presence of scaling
Date: Mon, 22 Jan 2018 11:58:34 +0100	[thread overview]
Message-ID: <87o9lmkvmt.fsf@gmail.com> (raw)
In-Reply-To: <5A623F25.5090604@gmx.at> (martin rudalics's message of "Fri, 19 Jan 2018 19:55:33 +0100")

martin rudalics <rudalics@gmx.at> writes:

>> Running emacs-26 with GDK_SCALING=2, frameset-restore will position
>> 2nd and subsequent frames incorrectly if they are in the right half of
>> the screen. Turns out that we're querying GTK for the dimensions of
>> the display in order to ensure that frames remain on-screen, and those
>> dimensions need scaling. Patch attached, tested on GTK 3.18, I'd
>> appreciate if someone with a HiDPI screen and GTK >= 3.22 could
>> confirm whether it works for them.
>
> When 'left' and top' are negative, they specify a frame position
> relative to the right or bottom edge of the display.  Are such
> specifications affected/corrected by your patch with scaling on?

They will almost certainly be corrected. My testcase involved
destop-save, which doesn't use such specifications for frames as far
as I know, I'll have to do some manual testing.

Robert



  reply	other threads:[~2018-01-22 10:58 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2018-01-18 14:32 [PATCH] Fix frameset-restore in the presence of scaling Robert Pluim
2018-01-19 18:55 ` martin rudalics
2018-01-22 10:58   ` Robert Pluim [this message]
2018-01-22 12:49     ` Robert Pluim

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=87o9lmkvmt.fsf@gmail.com \
    --to=rpluim@gmail.com \
    --cc=emacs-devel@gnu.org \
    --cc=rudalics@gmx.at \
    /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 public inbox

	https://git.savannah.gnu.org/cgit/emacs.git

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).