From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Po Lu Newsgroups: gmane.emacs.help Subject: Re: Frame shifted upwards upon changing font size Date: Wed, 14 Sep 2022 18:30:57 +0800 Message-ID: <87k066z1r2.fsf@yahoo.com> References: <831qsf5x8j.fsf@gnu.org> Mime-Version: 1.0 Content-Type: text/plain Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="17547"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/28.0.91 (gnu/linux) Cc: Gregory Heytings , Eli Zaretskii , help-gnu-emacs@gnu.org To: uzibalqa Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane-mx.org@gnu.org Wed Sep 14 12:32:40 2022 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane-mx.org Original-Received: from lists.gnu.org ([209.51.188.17]) by ciao.gmane.io with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1oYPhA-0004Ni-GQ for geh-help-gnu-emacs@m.gmane-mx.org; Wed, 14 Sep 2022 12:32:40 +0200 Original-Received: from localhost ([::1]:56332 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1oYPh9-00066y-Gd for geh-help-gnu-emacs@m.gmane-mx.org; Wed, 14 Sep 2022 06:32:39 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:38786) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1oYPfn-000651-Ic for help-gnu-emacs@gnu.org; Wed, 14 Sep 2022 06:31:17 -0400 Original-Received: from sonic304-20.consmr.mail.ne1.yahoo.com ([66.163.191.146]:42960) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1oYPfl-0001fb-05 for help-gnu-emacs@gnu.org; Wed, 14 Sep 2022 06:31:14 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.com; s=s2048; t=1663151470; bh=u7w5kfVjzPyW7Z1lPKVl+d9RecFEqEm/Ct9s+eNkBRw=; h=From:To:Cc:Subject:References:Date:In-Reply-To:From:Subject:Reply-To; b=lrEMaVEfU0AExemI4lZrkeZBDV8gW44TfQAOjJWDBi4jtY/r6/kqNcWsHW79Y8G613/Cbx7tLMQy1NbQbSIHK8tRuOVy0jOVJWzgPbjrSMxq4DyDEiNuQi2IOduIAfIIVFrF3VxnvNzplIyEJ9cj3ooDD1r+Lc4hPHzy5KqWhpqCh2vdaKWHhlVJQdmIIc8YCcNJcCN20/2GqptCjoU2oNK3FrH3cP6rfjbw1nl+jNJQeti5FEko7Ov98xaQdqANpPxOVP7QeEfEjmITBrNOPdpTF6jB5PMdfhDZiN8IXBYfed8CO8BG3cxGybemYEE0TZBAgQQMlqSmNCdJ3Cb7Zg== X-SONIC-DKIM-SIGN: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.com; s=s2048; t=1663151470; bh=WxsQKASZ3wjeH1yqk/gwipS0VvnXQxbFeBC+5+6k6HE=; h=X-Sonic-MF:From:To:Subject:Date:From:Subject; b=CXQDJZdx7tKDdazAIC+deUqvfqjr+OwTOSe9t91/fF8ngbwobcSUqat+/luU6lXzWAhgPBweALAyUmqk1GzHR9+RqYXkS97EREWHzRekc9k3Qf7hlsBFXrcge1jV371jlIvn7nVH+tds+Gw4HOOvvevsImgkcAhMpmTLIyZn5CnPhl1nX7Dy9ayIk5RfgciBCOgKPC/JlsLrkovqWBzC59SIXSRThIfvkgDRaGREUfE4C/tv2NS7MBkVSP4KJXJsl8LfrAhux1mlAB+Pgpu7AYqSe8Roe4MpB0Dx1NPZnSqYaJHs4k/4xOLynyp8QpGIEwsF9jUo3HRbl4zu57xp6w== X-YMail-OSG: TuRy4tEVM1k0pz7ow9A0D11V5jAec0QjFSnMe0FOcdaQrLS2LbElPB29aWtuvBB 1Fua30a6zFHYT8P6YGg_JGv4WVRuz7wAWkhN92pEPqoeIWcrTjewbXmiXTGx2mj.mEpKi7ir9.fN W_jqf_vSIVuEJi0TzO7ZXlwuWRozi0mClKLJs3BOYHMoZbaGA_RrfR_X1BOpKWw0EG3aBLHM6_Ok EkIxcmLl5ZgdpVQYTkgG3yuJTSmwxe7gblcxOaxHDBHvIqrl2adbSUaoiMkpMOVb2X0oTKSm.OqI lgtihC2H_cvXqkrfHGQUSwYiCEcjxopn1iYGfx0oF2Es0Z38GZJU5EP001egHlWbZlRewW4syYtj 8w5Ga1T4wQ8or08m0idDQs_c_q2lgzAep4QI6YXbHvriYhBI_eZhTfOWFMouu.LBpiRNZ68nvIME PU6wq2TE49njIfuevhyASxqAXdcwn7kW5BZ9Wlvu4oNBZqRoGvXpVgL7wOUxBpQH5fBnsT.Sh2yJ uyzSD6pqK8rytoEO0iXZbhFkg.nPGxDZZowLecsc3.XNtnp0nLvjTdfbDfwUpgX7Ho_9hgUnb22I 9G269kejnx_ANTbkDkgiwi2Dt0w.1hsid02WOtqzNzJuwe.bBMt2uDvH55ClNwPbwTYuOQGHeNIW Wj4q9lqX2yZmhMDszCbthko6a0yZnzjvZnBm8jexfoNn_wEm1qFSGC3IeMvWVbCtzpGmSRvOJBbY 1IO3blUBwe.axs5K9aevk2Z7O02Ldr5hMP8ljCrACdQMX4lPCS3ZJ9nL.v0VCrbo7zLTss6a65Pe SpSuzEZi7xqLznnIZdo_dcqVH28PSPZXyvgIPDnx_R X-Sonic-MF: Original-Received: from sonic.gate.mail.ne1.yahoo.com by sonic304.consmr.mail.ne1.yahoo.com with HTTP; Wed, 14 Sep 2022 10:31:10 +0000 Original-Received: by hermes--canary-production-sg3-6bb8946c47-wlcqj (Yahoo Inc. Hermes SMTP Server) with ESMTPA ID 7f7d3be88760314fdfa7e012b93dbb4b; Wed, 14 Sep 2022 10:31:03 +0000 (UTC) In-Reply-To: (uzibalqa@proton.me's message of "Tue, 13 Sep 2022 21:07:57 +0000") X-Mailer: WebService/1.1.20612 mail.backend.jedi.jws.acl:role.jedi.acl.token.atz.jws.hermes.yahoo Received-SPF: pass client-ip=66.163.191.146; envelope-from=luangruo@yahoo.com; helo=sonic304-20.consmr.mail.ne1.yahoo.com X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, FREEMAIL_FROM=0.001, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001, T_SCC_BODY_TEXT_LINE=-0.01 autolearn=unavailable autolearn_force=no X-Spam_action: no action X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane-mx.org@gnu.org Original-Sender: "help-gnu-emacs" Xref: news.gmane.io gmane.emacs.help:139457 Archived-At: uzibalqa writes: > Could emacs get to understand the monitor within which the initial frame > gets displayed and be able to center the frame in that monitor? That gets tricky very quickly. Monitor names are not guaranteed to remain unique, and X-level identifiers are reused in a monotonically increasing fashion and cannot be relied on to uniquely identify the monitor on which where the initial frame was created. In fact, X has 3 kinds of "monitor": CRTCs, outputs, and monitors. A CRT controller defines a rectangle in the screen that has a single mode line, and can have multiple outputs attached. An output is a physical output that displays the contents of its CRTC, and a monitor is a subset of the screen that represents a non-disjoint collection of pixels that will be presented to the user through 1 or more outputs, which may be connected to any number of CRTCs. Of course, a frame might be displayed in multiple overlapping monitors, outputs, and CRT controllers, at any given time. Under such a situation, where do you propose to center the frame?