From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: martin rudalics Newsgroups: gmane.emacs.devel Subject: Re: [PATCH] Fix frameset-restore in the presence of scaling Date: Fri, 19 Jan 2018 19:55:33 +0100 Message-ID: <5A623F25.5090604@gmx.at> References: <87efmnb5kr.fsf@gmail.com> NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-Trace: blaine.gmane.org 1516388126 19740 195.159.176.226 (19 Jan 2018 18:55:26 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Fri, 19 Jan 2018 18:55:26 +0000 (UTC) To: emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Fri Jan 19 19:55:22 2018 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by blaine.gmane.org with esmtp (Exim 4.84_2) (envelope-from ) id 1ecboX-0003YF-6N for ged-emacs-devel@m.gmane.org; Fri, 19 Jan 2018 19:54:57 +0100 Original-Received: from localhost ([::1]:38230 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ecbqX-0000jQ-3Z for ged-emacs-devel@m.gmane.org; Fri, 19 Jan 2018 13:57:01 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:44842) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ecbpC-0000e4-KS for emacs-devel@gnu.org; Fri, 19 Jan 2018 13:55:43 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ecbpA-0003a0-69 for emacs-devel@gnu.org; Fri, 19 Jan 2018 13:55:38 -0500 Original-Received: from mout.gmx.net ([212.227.15.15]:60393) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1ecbp9-0003Zc-SA for emacs-devel@gnu.org; Fri, 19 Jan 2018 13:55:36 -0500 Original-Received: from [192.168.1.100] ([213.162.73.177]) by mail.gmx.com (mrgmx002 [212.227.17.190]) with ESMTPSA (Nemesis) id 0MdaCy-1eSkTy2IwO-00PQsU for ; Fri, 19 Jan 2018 19:55:34 +0100 In-Reply-To: <87efmnb5kr.fsf@gmail.com> X-Provags-ID: V03:K0:WRrDA0Q9IlXr9J8OVcggzHZfiKu5grIcFJ5t4fT2Tt+gFPOwatC WuL53EZhwY+BcO05dm9KyttxibRAXuFM/Wfe+o9oo61yqaxDMWGyFXFN91heKWyeUz+fJ5a p2Ywy3oZSpXMEfsQEXVSLnfU4DFCwdGmX2HUoMH7uq0AOTLTCMkqwYHLmdp+RXYZH2Agksz EJ72TpQymMPLnnSgwjJOQ== X-UI-Out-Filterresults: notjunk:1;V01:K0:v9o47Y0xdxU=:mNzMMbCT+WmPxubG+4ay0D kg6xD9qVmnkcsF1UM6E26z6WeeK77hcXWZJW/D9k3+ed0sIxxO3sV0U1buBVRxkAG8+v0sjqb Ox1BUN1FiVUeKTYFvdxvr01HNM6TqTSFaTa2o7xgOmVDZedAZep5I3738uBYN+8faETmaMexu uaqPaTl4cU0Kdqogj1eNywL7tFUNqzhqDEywqCSN7hf0XlTGGtsBqqjokUlcW+bykOesXIFEL 7qjda2FkzJunj6JgWpirW6nOe8UxrH1kPMpoX0BiwynxKCzG0XX/uRdFRuP1Gik1lgNHtoZbc UvH1n7+JuYAm9w6LMiwIEBxuSaKD2G6HDk4PxK4etDOHpTrQhTCBjTSAjK9+5Ttask8oJTPHX sH3b06zVI2hweyF98YQRNxwte4wyivT7tPDnF+u2ANWCOkb2LTpGC99LXApnjk7MlEpmB+p5Q d3eVM18/3XHJ/wLSH/pylV+OhrBm//bVWAex1LSGpkGe6fX2D42UB0gaWZwFD+uCweTLPXYRC 4YSbd8ZFicRHpfitx6awL+bWZj46JlmE+JbwHv7FAVmgkmYuP9JyRg3z9PMSbJ99fqRxi4iPs ZxsxAxLTxk13coL//dVf4VXXF+cJfkdEysVGhyeRPkj9f7P0WaQtq4nFHaBShgFP7fEebojei PzTgUqy6eZ6v9BGZqgoGX2/I4wHQfXgZPwprGePc73/qJyeyFS3GhubpbQaLqfKjIFSuQn4av lEF4jRqG6M2Rgl/ckfsnQRREZg7+MTEut+046p/t7ivn3b1YlTrBnv3QF2sTdPwBU6/YCgfv X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] [fuzzy] X-Received-From: 212.227.15.15 X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Original-Sender: "Emacs-devel" Xref: news.gmane.org gmane.emacs.devel:222094 Archived-At: > 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? martin