From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Christopher Dimech Newsgroups: gmane.emacs.help Subject: Re: Frame shifted upwards upon changing font size Date: Wed, 14 Sep 2022 17:21:49 +0200 Message-ID: References: <831qsf5x8j.fsf@gnu.org> <87k066z1r2.fsf@yahoo.com> Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="29462"; mail-complaints-to="usenet@ciao.gmane.io" Cc: uzibalqa , Gregory Heytings , Eli Zaretskii , help-gnu-emacs@gnu.org To: Po Lu Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane-mx.org@gnu.org Wed Sep 14 17:23:37 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 1oYUEj-0007Uh-Qt for geh-help-gnu-emacs@m.gmane-mx.org; Wed, 14 Sep 2022 17:23:37 +0200 Original-Received: from localhost ([::1]:47288 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1oYUEi-0005Vu-QS for geh-help-gnu-emacs@m.gmane-mx.org; Wed, 14 Sep 2022 11:23:36 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:60018) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1oYUDA-0005Vf-1X for help-gnu-emacs@gnu.org; Wed, 14 Sep 2022 11:22:00 -0400 Original-Received: from mout.gmx.net ([212.227.17.20]:41093) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1oYUD7-0005IQ-UC; Wed, 14 Sep 2022 11:21:59 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=gmx.net; s=badeba3b8450; t=1663168910; bh=m/zYYy8zqX1dz4k0cLi0nazZs+y0J+LfR27F58TK/uQ=; h=X-UI-Sender-Class:From:To:Cc:Subject:Date:In-Reply-To:References; b=jn7Xw/5FolMCPR10ilTK9Eyv9lgDohQ7h/KNah+ItSMlfZIUTnNw8aE2tzz0R+1l7 Nv8F9Ypdh48madeqOLbBUVRv7LIRJ8Iatv43744sSbo/XFiyAF5lADOqhPKKXpj244 KNbqO4YCrkf+NsKFY/MQhACNZeyyjMKqqfDTqb1Q= X-UI-Sender-Class: 01bb95c1-4bf8-414a-932a-4f6e2808ef9c Original-Received: from [92.251.127.164] ([92.251.127.164]) by web-mail.gmx.net (3c-app-mailcom-bs06.server.lan [172.19.170.174]) (via HTTP); Wed, 14 Sep 2022 17:21:49 +0200 Importance: normal Sensitivity: Normal In-Reply-To: <87k066z1r2.fsf@yahoo.com> X-UI-Message-Type: mail X-Priority: 3 X-Provags-ID: V03:K1:4uTmC+nkMYLHqF9eSe7vq6eNaZBDV8hpjsDfrYi5uZKtxqFYsSJwzylIYTPNUiHZYXrb7 woIF491BEudvjgdfC6CPKlNeE+eusaY6XwedW4OWtEK/SGcdw0iwOS5/PGEIjIPx8tmF0Z8iIm9B YXCbByd7cui88WDnxr663rTvEGxj22D9m3F87AwxvMcpCOq97m3dSZOlcSidh4LzvkraIlUea4gQ A/nfT/P2hhjiKE4WW6YpdNtDCSpam6RkFpkO7M5KdEmj+ZEJhBWRvhujFwJ4wIes5mbruRdA6KW6 as= X-UI-Out-Filterresults: notjunk:1;V03:K0:nLCb00yslFE=:NFo1aTqfehMc6a8rygYbIa xqnyicEdp+o/Yj6wLfbAg+VE4wrI0xknqFMbx7BztoVSscT7FD6zcvIByAT58k4Jfu6XbKFSF KczGMCT6yJqsQzwtWVHsjA3uAhIDFvvR4ZAfHdbmUnKFVhy5eo2g2GOpMZPm+Fv4ETpv2eN0F 5te4J27dF9FCt10Mgv5xgZQ8GkukZ6JAux0qpylyDAgw2Q0xkGA48hzHnAC2S63/tzyy39NXk sR1A8INv5gf1wrPCHiqA3nWSYXj9fwVDjyHnj1YC3NAGK6LPTNtpQcRdj4fgNXvv/2NmtfJid laBHfaWJV2CF174/zN7lXp5zY2JqS78JKi/onf6WVgrc1WNrEmUhzIoOG7rBvb0vKYhlgygFB j424aRk2WvxYk7RlkuIyuvfqOr/Jfg53bwv0JgbLcvtiH0gD5SvRDfoPeI5IA81PRiOkpOJIk uZmcvqz+ftKyMjVjaktGm2/Wyg2GMk1dybnLOlNha8zV6Sqk9kLdqgXlLnGA73xC4EXfsfy1h PeXcyp5oqPYz9RU4DbJAcoSW3HTbW3W5HQyIUY9dtZbUHMWB9428XGYfT0Cdg+y8hVxudmXvM 3p14n1wJnrDVT270Knf6zSBBzKoJwQm/TTCaYE9AN84OUcDHvMLyMvyHeFUa2DPOuUXah0oaj gNbzB2D8uNnJftMUDnRTdSQ+LAdeIBkV+tiU/e+H/wzMGPeRJ5QHI55R66DRnk/FCWUiPGqXC kWRNwqRhf2pULUjNlV+tc/UkmYnakfPgiDOKIQXlWvl3cvSQoDzGCs7Nyyd/WZPgc6L8imwA Received-SPF: pass client-ip=212.227.17.20; envelope-from=dimech@gmx.com; helo=mout.gmx.net X-Spam_score_int: -25 X-Spam_score: -2.6 X-Spam_bar: -- X-Spam_report: (-2.6 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, FREEMAIL_FROM=0.001, RCVD_IN_DNSWL_LOW=-0.7, RCVD_IN_MSPIKE_H2=-0.001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001, T_SCC_BODY_TEXT_LINE=-0.01 autolearn=ham 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:139461 Archived-At: > Sent: Wednesday, September 14, 2022 at 10:30 PM > From: "Po Lu" > To: "uzibalqa" > Cc: "Gregory Heytings" , "Eli Zaretskii" , help-gnu-emacs@gnu.org > Subject: Re: Frame shifted upwards upon changing font size > > uzibalqa writes: > > > Could emacs get to understand the monitor within which the initial fra= me > > 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? Currently a user way cycle through the themes to see how it things. Perhaps there could be something similar for the monitors. Once satisfied the user can pick up a monitor attribute to include include in the init file, if they do not like what emacs decides for them.