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.devel Subject: Re: make-frame-command with multiple munitors Date: Wed, 21 Sep 2022 13:44:59 +0800 Message-ID: <878rmdi8mc.fsf@yahoo.com> References: <875yhil2xw.fsf@yahoo.com> <87pmfpiic4.fsf@yahoo.com> Mime-Version: 1.0 Content-Type: text/plain Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="22248"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/28.0.91 (gnu/linux) Cc: emacs-devel To: Pedro Andres Aranda Gutierrez Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Wed Sep 21 07:49:22 2022 Return-path: Envelope-to: ged-emacs-devel@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 1oasbp-0005eS-AN for ged-emacs-devel@m.gmane-mx.org; Wed, 21 Sep 2022 07:49:21 +0200 Original-Received: from localhost ([::1]:45848 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1oasbn-0006XI-Qd for ged-emacs-devel@m.gmane-mx.org; Wed, 21 Sep 2022 01:49:19 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:36604) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1oasY8-00057C-Ai for emacs-devel@gnu.org; Wed, 21 Sep 2022 01:45:35 -0400 Original-Received: from sonic304-20.consmr.mail.ne1.yahoo.com ([66.163.191.146]:39768) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1oasXs-0005P2-A0 for emacs-devel@gnu.org; Wed, 21 Sep 2022 01:45:31 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.com; s=s2048; t=1663739109; bh=vSTEND2BGK0geq4SVKv2LVIADKtnhnC4UhMAmdgsEas=; h=From:To:Cc:Subject:References:Date:In-Reply-To:From:Subject:Reply-To; b=WyMjR5DJOoHh1vl6gYfR6pYeVFHouRZuBGHhvwaexxEsfGk0z8UgNnkFoCOnz60w6U4SDnpEMjmmuyl7y6pChQNzZvvOTDnaONaOfHUwMmKWDEmO4sVpKpJkdy/DOzL6th1emEIgoR8cdNNnqElyjygGHXTkd62m/mU6AIMnBwX+YsRrVOm2opcQZIP+Oc9gJeqWef/M0cl1fihaFutrz4HFyBTzSvQ9JLwqP61w8hfHNefWk73ciOC+90/LygffRI76YwH1UyAPSE953hR5F3+BpRiXh8OYGryObP7L7gJtqqKbMqBQqMTb5DYLxOvuyVtGCRXCPPeSWf136gltkA== X-SONIC-DKIM-SIGN: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.com; s=s2048; t=1663739109; bh=zPN1N+HhyTCQtj2oPZv/Pd1+L5AmZQeLV8OZaimPGru=; h=X-Sonic-MF:From:To:Subject:Date:From:Subject; b=puXZivfteUSjXz5uy+IoFieXq7fzBq1s2d4n8P5ReRvsh9HYGBzWwOdI878HW5Urc95V9TXmLp24ll13v5GUdd12XtjrjSRcOELu+InVJkFtE1hf1QeGPVz7gfdcD6p6gZdwf0TU+f3AeWkU7THQ/W9Fi6wCHMJiwBvivmlXoC6TnWRKCu6hWJfCHkgziOGazFLOFofx28O4ntdVJgY2+XMms+I+hbNvh3U+d0MnKQOpizU60BH7hBIKZ0rOUZRYLGKfaTB5mIA1RD8kMpO8jyrUdH6nPEmE5McRs+9oE142E3lpFxNHrYsc1dnxbKvdyL3h3+SGYq9pT35x9BEDZw== X-YMail-OSG: ei51HZ0VM1mvhAmPjuyzYu8777M2VYgX6NWuyah1q655WG3U0e5_qewGkCoYSeG SJNetF0BdmWLu0GTf0v8_XYh.dzErH_mK.XzOmAeBnRy61IGHNLDYE_bO6NSYje9pyxJGAQpupEY Zx8TH9wB6ni.mHhAxAdVwB3ZfZgbluGycHUS3i5csnLkIrmHY_tBu1ZjuTwSRYJ9YN.FjRad8isW MUp1ZyALS_h.zw_R8GweL6e0h3zT6wovvgrZIlkF6P9iw6AeaCTn.pUo.hQdE0ajeyBKCagkodAM UqG0DUdhJpuKqeQmRLGYuHNEsBKrTH4l8aak5Tr0yn4zWnxuSlHyc1ZnY17napBUCc7zkdgBCgrm 3XaM0UtOuwK9sb2YrmGPrgwVwjYGjebct0y_q8lsvjyprbAX1C49fYuO.z3TzFay0II4gqcxSfbO q3il5n.oV2XefJWDhjX0ze7BWIzXad5FMepqB.3hzzGDJvPgRq7G7TSc0LvH3QJ5a5gk8OnAx... I5lR9QSOI617TTipERQuY70L8kFs6SzCC1xIWUw4tGkYDpL6mzIFPLvVyAAs5VGrsRXBaTGqKSx2 dmIYUZIpqrfKvChGXk6.85NvW8EX.1KwvAbQ4M6ciuxJYNKydGpYhl5Az8xar2w7bJY8p73B1U19 9jbaK4pnW3S1fai9LmxNku.KFEAQeoXrOBz_dqUDAHui.5FTE_LKix4AJRZH8Qe9fVW8Hw9hAx_A jdM02QN_oZ5PbsLswK.kWjdEsyE4KIteXPYYtfYYFK2zhJfmO25YBdkPnNdyWtaCVJKHkhrYedDy Q.uaeSH2YAgypnpXmPfeFxBPzbl2jrOMXQZrxGBBSp X-Sonic-MF: Original-Received: from sonic.gate.mail.ne1.yahoo.com by sonic304.consmr.mail.ne1.yahoo.com with HTTP; Wed, 21 Sep 2022 05:45:09 +0000 Original-Received: by hermes--production-sg3-6d76f6b48d-sxspw (Yahoo Inc. Hermes SMTP Server) with ESMTPA ID 1a27aed54add3ef41acf1b9db5b28b68; Wed, 21 Sep 2022 05:45:05 +0000 (UTC) In-Reply-To: (Pedro Andres Aranda Gutierrez's message of "Wed, 21 Sep 2022 07:22:36 +0200") X-Mailer: WebService/1.1.20663 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 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.29 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-mx.org@gnu.org Original-Sender: "Emacs-devel" Xref: news.gmane.io gmane.emacs.devel:295856 Archived-At: Pedro Andres Aranda Gutierrez writes: > OK... a longer answer ;-) the moment you include (top . xxx) or (left > . xxx) in the (default|init)-frame-alist the vales are taken as > absolute values in the window manager's space, and Emacs will be > placed (normally) somewhere in the display that is designated as 0 > (the Linux laptop or MacBook Pro) independently of which display you > were when you lunched Emacs. Well yes, that's intentional behavior. Setting `top' or `left' tells the window manager to try very hard to place the frame at the specified location on the screen. If you want the frame to be placed at the correct location, you will have to either remove both position parameters from initial-frame-alist, for it to be positioned by the WM, or manually specify the position of the monitor you want. A note about terminology from the POV of Emacs: the normal coordinate space of a connection to the X server (the connection is referred to as a "display") is relative to the root window of the display's default screen. A screen is then split into different "monitors", which are potentially overlapping rectangular subsets of the screen's root window, normally displayed in a single physical monitor, not counting overscan or underscan. `top' and `left' coordinates are specified relative to the root window of the screen, not "in the display that is designated to 0", nor is such a coordinate system affected by the monitor in which the initial frame was created. Where in the root window coordinate system individual monitors are placed can only be determined by the output of display-monitor-attributes-list.