From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: "Feng Shu" Newsgroups: gmane.emacs.devel Subject: Child-frame can not move to proper position when run "env GDK_SCALE=2 emacs" Date: Mon, 08 Jan 2018 19:53:13 +0800 Message-ID: <87wp0sy3bq.fsf@163.com> NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: blaine.gmane.org 1515412330 25186 195.159.176.226 (8 Jan 2018 11:52:10 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Mon, 8 Jan 2018 11:52:10 +0000 (UTC) User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/26.0.90 (gnu/linux) Cc: Feng Shu To: emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Mon Jan 08 12:52:05 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 1eYVyF-00068H-Gf for ged-emacs-devel@m.gmane.org; Mon, 08 Jan 2018 12:52:03 +0100 Original-Received: from localhost ([::1]:58069 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1eYW0E-0005U0-Tc for ged-emacs-devel@m.gmane.org; Mon, 08 Jan 2018 06:54:06 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:33173) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1eYVzb-0005TY-1m for emacs-devel@gnu.org; Mon, 08 Jan 2018 06:53:27 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1eYVzX-0001un-5L for emacs-devel@gnu.org; Mon, 08 Jan 2018 06:53:27 -0500 Original-Received: from m12-11.163.com ([220.181.12.11]:59251) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1eYVzW-0001s0-A9 for emacs-devel@gnu.org; Mon, 08 Jan 2018 06:53:23 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=163.com; s=s110527; h=From:Subject:Date:Message-ID:MIME-Version; bh=0lfu9 VBHEsmvZuaB/lYBOAkQyiKim6qoLHECfY2ISbU=; b=nIjh/+m9iJt4jdxyfOLcn 4rJCXz1B9ZkFTkYSnzEX59BOWHhHvoag3w6VcdaibnTY0OeOeiJx6jv9b5c9KP3J 0aUhCqozw2c7Ii2U6ZIAVIbcop4ugsd8KYIXvU9kJya9Layu0XhSmLaPlQkan87x 3MpBkagbsM7byUAvIlAL9o= Original-Received: from tumashu (unknown [183.206.89.48]) by smtp7 (Coremail) with SMTP id C8CowABXxr6qW1NaXtsWBw--.41486S2; Mon, 08 Jan 2018 19:53:14 +0800 (CST) X-CM-TRANSID: C8CowABXxr6qW1NaXtsWBw--.41486S2 X-Coremail-Antispam: 1Uf129KBjDUn29KB7ZKAUJUUUUU529EdanIXcx71UUUUU7v73 VFW2AGmfu7bjvjm3AaLaJ3UbIYCTnIWIevJa73UjIFyTuYvjxUVIzuDUUUU X-Originating-IP: [183.206.89.48] X-CM-SenderInfo: 5wxpt2lkx6il2tof0z/xtbBEQvH1FaDwD8aSQAAsw X-detected-operating-system: by eggs.gnu.org: GNU/Linux 3.x [fuzzy] X-Received-From: 220.181.12.11 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:221706 Archived-At: When I run "env GDK_SCALE=2 emacs", the below code can not work properly ``` (let ((test (let ((after-make-frame-functions nil)) (make-frame `((parent-frame . ,(window-frame)) (width . 50) (height . 1))))) (pos (posn-x-y (posn-at-point (point) (selected-window))))) (set-frame-position test (car pos) (cdr pos))) ``` When I eval the code at the , the new created frame can not move to , it move to the wrong position. --