From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: Robert Pluim Newsgroups: gmane.emacs.devel Subject: Re: Child-frame can not move to proper position when run "env GDK_SCALE=2 emacs" Date: Tue, 09 Jan 2018 11:56:01 +0100 Message-ID: <874lnvi9mm.fsf@gmail.com> References: <87wp0sy3bq.fsf@163.com> <5A53B5C5.70105@gmx.at> <87608c54xw.fsf@163.com> <5A548EAA.3060908@gmx.at> NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: blaine.gmane.org 1515495265 3046 195.159.176.226 (9 Jan 2018 10:54:25 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Tue, 9 Jan 2018 10:54:25 +0000 (UTC) User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/26.0.90 (gnu/linux) Cc: Feng Shu , emacs-devel@gnu.org To: martin rudalics Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Tue Jan 09 11:54:21 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 1eYrXq-00005Y-06 for ged-emacs-devel@m.gmane.org; Tue, 09 Jan 2018 11:54:14 +0100 Original-Received: from localhost ([::1]:45349 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1eYrZp-0006Uy-Db for ged-emacs-devel@m.gmane.org; Tue, 09 Jan 2018 05:56:17 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:52347) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1eYrZi-0006UX-H0 for emacs-devel@gnu.org; Tue, 09 Jan 2018 05:56:11 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1eYrZe-0005zR-K1 for emacs-devel@gnu.org; Tue, 09 Jan 2018 05:56:10 -0500 Original-Received: from mail-wm0-x231.google.com ([2a00:1450:400c:c09::231]:43045) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1eYrZe-0005yS-BZ for emacs-devel@gnu.org; Tue, 09 Jan 2018 05:56:06 -0500 Original-Received: by mail-wm0-x231.google.com with SMTP id g1so1762693wmg.2 for ; Tue, 09 Jan 2018 02:56:06 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:references:gmane-reply-to-list:date:in-reply-to :message-id:user-agent:mime-version; bh=YAfj8XM3AtUWJlHeneFmMZPYTNSXZvB1iTGcjYLCAA4=; b=LF7AadRzJfhprmCTIaa4fDJQYeB2s/vufy09dqr+6pVGHppudA8qfw55z/JHKITsvh UamfxIE/8RhtegdtpMsgg3mIeHJVwXbOL+X6PDd3KwfBVNKMotb0mwSkzSPRs5H+wCqk Py4seCyu+1lkFDp5QJWxXGRwhutFcuH+8MO/3fic/PwIfe/cHoCT8pTzS53vyU8IiEki eyrZ4KObv46n6GjQ8Dc7ip0ClkZadqbjaPVFiruEyS3XpTmxG6k85itxsRWd0H5DghnP zHQOe2EhTsSs6JwB2rbqh3mfs5zKZzEy9Bymdr+BAf5Y10jPYBwo+/vHQLTXds/0lYJ0 KUbg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:references :gmane-reply-to-list:date:in-reply-to:message-id:user-agent :mime-version; bh=YAfj8XM3AtUWJlHeneFmMZPYTNSXZvB1iTGcjYLCAA4=; b=KAd6oZIphOuvKctRUG38agz3VpVSSAheXOoXgpkeqDOFYtySwyjPKVdNS48Eb5MhdG cRUkRXfjInxO9mGk1RT5LUsSQewfjvdOiD5iAHXtgavAWDlwU5ScmwQrzazMCnW3mXMW vIkfGyi/1DM1gR2jN0Chd/a0C7Oc+vDmt1zBwOHukWtnkv0EfDycWfie2YNX6suJGFX5 j+/FXJljZbYEIX1cv1jTLsxx0J6N1z//S2Fiu9sGehlKzzOr2NMWiZtdRYtrQ+qvoTbo WlY82sg86V7zaZprTk9XnSRFtQDELq01LAfKT+kZmgiJ3axSnoTour52F3TsNOfHXQdp p+Ew== X-Gm-Message-State: AKwxyteevCWaICNkCWjNky2nZ1lsLS/bjsKUoezwyLaSjM2B2Qd/bM5b mMRH6zUP2uHkFD5z+8KEoDvqzPp+ X-Google-Smtp-Source: ACJfBotwwYsBpxj4RBze+1+MMXd6wssz6QefAtsrBZLgruiI118fgvG4AkE/1jtaP0ouy9wmTAQ1oQ== X-Received: by 10.80.171.21 with SMTP id s21mr1633939edc.117.1515495364887; Tue, 09 Jan 2018 02:56:04 -0800 (PST) Original-Received: from rpluim-ubuntu ([149.5.228.1]) by smtp.gmail.com with ESMTPSA id u21sm7821927edl.54.2018.01.09.02.56.01 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 09 Jan 2018 02:56:02 -0800 (PST) Gmane-Reply-To-List: yes In-Reply-To: <5A548EAA.3060908@gmx.at> (martin rudalics's message of "Tue, 09 Jan 2018 10:43:06 +0100") X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 2a00:1450:400c:c09::231 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:221755 Archived-At: martin rudalics writes: >>> What happens when you divide the pos values by two? >> >> When (/ x 2) and (/ y 2), It works! :-) > > So it's just the same issue as everywhere else. Now I wonder whether > the positions returned by `pos-visible-in-window-p' are wrong in this > case or the values passed to `set-frame-position'. Maybe that's just > a philosphical question though. I guess you meant posn-at-point. That returns the position in pixels, unscaled, so I think it's correct. Robert