From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED.blaine.gmane.org!not-for-mail From: Robert Pluim Newsgroups: gmane.emacs.bugs Subject: bug#34516: Multi-monitor frame sets Date: Mon, 04 Mar 2019 10:52:09 +0100 Message-ID: References: <87bm3a74s4.fsf@mail.linkov.net> <87zhqsx115.fsf@mail.linkov.net> <87r2byw802.fsf@mail.linkov.net> <20190302205424.GB20712@breton.holly.idiocy.org> <86r2bosuc0.fsf@gmail.com> <20190303114324.GA49402@breton.holly.idiocy.org> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Injection-Info: blaine.gmane.org; posting-host="blaine.gmane.org:195.159.176.226"; logging-data="155884"; mail-complaints-to="usenet@blaine.gmane.org" Cc: Andy Moreton , 34516@debbugs.gnu.org To: Alan Third Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Mon Mar 04 10:53:20 2019 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([209.51.188.17]) by blaine.gmane.org with esmtps (TLS1.0:RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1h0kHf-000eNB-W4 for geb-bug-gnu-emacs@m.gmane.org; Mon, 04 Mar 2019 10:53:20 +0100 Original-Received: from localhost ([127.0.0.1]:51056 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1h0kHZ-0001Wt-S9 for geb-bug-gnu-emacs@m.gmane.org; Mon, 04 Mar 2019 04:53:13 -0500 Original-Received: from eggs.gnu.org ([209.51.188.92]:47028) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1h0kHT-0001Wo-Nh for bug-gnu-emacs@gnu.org; Mon, 04 Mar 2019 04:53:08 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1h0kHR-00050L-Rt for bug-gnu-emacs@gnu.org; Mon, 04 Mar 2019 04:53:07 -0500 Original-Received: from debbugs.gnu.org ([209.51.188.43]:45414) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1h0kHO-0004wQ-Ak for bug-gnu-emacs@gnu.org; Mon, 04 Mar 2019 04:53:03 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1h0kHO-0002Dv-3W for bug-gnu-emacs@gnu.org; Mon, 04 Mar 2019 04:53:02 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Robert Pluim Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Mon, 04 Mar 2019 09:53:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 34516 X-GNU-PR-Package: emacs Original-Received: via spool by 34516-submit@debbugs.gnu.org id=B34516.15516931418501 (code B ref 34516); Mon, 04 Mar 2019 09:53:02 +0000 Original-Received: (at 34516) by debbugs.gnu.org; 4 Mar 2019 09:52:21 +0000 Original-Received: from localhost ([127.0.0.1]:58958 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1h0kGj-0002D3-Ig for submit@debbugs.gnu.org; Mon, 04 Mar 2019 04:52:21 -0500 Original-Received: from mail-wm1-f49.google.com ([209.85.128.49]:36972) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1h0kGh-0002Cq-Al for 34516@debbugs.gnu.org; Mon, 04 Mar 2019 04:52:20 -0500 Original-Received: by mail-wm1-f49.google.com with SMTP id x10so3980200wmg.2 for <34516@debbugs.gnu.org>; Mon, 04 Mar 2019 01:52:19 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:references:mail-copies-to:gmane-reply-to-list :date:in-reply-to:message-id:mime-version:content-transfer-encoding; bh=KSrv1al+ueU289X+v0AAKpjtcLD4WsgWjNeDF6FKwng=; b=TABCn3ZJk9/hD34MRTBDK69z5Rhv+BU2fK6dcjUd42fMsIan+tqGwbcnpdlckzaILf 2+pRprAaStQA9AHiHi1m28MnIVYJ724Q73Sws2SAd0Fmzn4YS/ef/GTFmzYlrQhymKef sO7Y6bBdTIkdMlOfw6BGbyL1Y9bDnZI1anAOldsHm7lJRY+ASafJzZHkjmTvRnOvoLXh R7JPcL6drOwQYUWOBBV9RkToYmzB+7UbRLaHlySDl077QUI7SVJVOozLkeKZ7hSeukiZ nV1lfDWoCFrEPrL/lXJJ0LWrFYifgxFn1Ua3s0aOhQt9yWeDLGfV2UNVC3PC01SkjBih cI4Q== 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:mail-copies-to :gmane-reply-to-list:date:in-reply-to:message-id:mime-version :content-transfer-encoding; bh=KSrv1al+ueU289X+v0AAKpjtcLD4WsgWjNeDF6FKwng=; b=hntOxEIs9WgYU5HGBUeHCmiD6YiGm5CfWj2I5ANQmJtaLwukgzwCCPYqH6FIDtdC0N uGG96iLuWdRMo1qaIYUV0eY4PxsBkgCUNQrqC65x8vEaZjSU4+I4Zy56t/XtdSvJbULw 55kLY9FbqdH03CHdSoTprR8TPhrzKvrbU4iHWwMwGA7eKxcpavesZYZG93st0DCfB430 IpJOWxM/1ZODyZ2ytU/7PosjIbgfohhIGt8iFA7k2mI2hd+shqHCiNp+uyiJgVWUOoqD rFLpw+YtfLBGuGMIGjgYkd/9CnFN4NNwGR8IyC2zxCoJMuYnNF8LY9IswBRWKj/RDzoF EVHQ== X-Gm-Message-State: AHQUAuYawSb56nmMTYV8H6aMWqCwAFx5vEFdnrIEDVwXsLkuIAO4xuQb /C9PceR4Wi4cQ7P5T+yeQq5cEY7e X-Google-Smtp-Source: AHgI3IYrDyUv1qEWLaTqfJaAfjTkYfwUCx7+anBoOe8YshbNiKtPmeuhakuSUvDQsEewZNOZR0mOIQ== X-Received: by 2002:a7b:c84b:: with SMTP id c11mr10445826wml.108.1551693132725; Mon, 04 Mar 2019 01:52:12 -0800 (PST) Original-Received: from rpluim-mac ([2a01:e34:ecfc:a860:a488:ec6d:43ee:43be]) by smtp.gmail.com with ESMTPSA id a131sm1041243wmh.34.2019.03.04.01.52.10 (version=TLS1_3 cipher=AEAD-AES256-GCM-SHA384 bits=256/256); Mon, 04 Mar 2019 01:52:11 -0800 (PST) Mail-Copies-To: never Gmane-Reply-To-List: yes In-Reply-To: <20190303114324.GA49402@breton.holly.idiocy.org> (Alan Third's message of "Sun, 3 Mar 2019 11:43:24 +0000") X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 209.51.188.43 X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Original-Sender: "bug-gnu-emacs" Xref: news.gmane.org gmane.emacs.bugs:156022 Archived-At: Alan Third writes: > On Sat, Mar 02, 2019 at 11:57:35PM +0000, Andy Moreton wrote: >> On Sat 02 Mar 2019, Alan Third wrote: >>=20 >> > On Sun, Feb 24, 2019 at 01:56:31PM +0100, Robert Pluim wrote: >> >> Juri Linkov writes: >> >>=20 >> >> > on macOS it could return something like that or generate fake names >> >> > from geometry like "1920x1080+0+0", "2560x1440+1920+16". >>=20 >> It would be more usefulr to use the underlying device name, like on other >> platforms. > > It doesn=E2=80=99t look like macOS gives displays any sort of human reada= ble > name. The closest I can find is the monitor=E2=80=99s make and model, whi= ch > appears to be lifted directly from the device driver. I expect if you > have two identical monitors then it will be the same for both. > At least in 'system preferences/display', when you have two identical monit= ors attached, they're called something like 'DELL 1234X' and 'DELL 1234X (2)' (I can=CA=BCt test that right now). If you can show me code on how to get those names in 10.14, I can confirm. That would be better than making up names. >> > Also, it might be worth considering using the =E2=80=98did=E2=80=99 va= lue instead of >> > =E2=80=98i=E2=80=99. As far as I can tell it=E2=80=99s just a uint32_t= , and should stay the >> > same as long as the system isn=E2=80=99t rebooted. >>=20 >> Is the did value reused if monitors are dynamically plugged and >> unplugged ? This may happen when using a laptop with docking >> stations and external monitors. > > The documentation implies it may remain the same for the same monitor, > but then again, maybe not. It=E2=80=99s not very clear. > > It shouldn=E2=80=99t be the same for two different monitors, though. I can respin to use the did, if there=CA=BCs no better alternative. Robert