From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.bugs Subject: bug#9366: Display geometry change hook Date: Tue, 22 Sep 2020 17:16:58 +0300 Message-ID: <83v9g5x5et.fsf@gnu.org> References: <4E55DACA.6080401@harpegolden.net> <87363dpyz3.fsf@gnus.org> <838sd53h9c.fsf@gnu.org> <0984dc8a-220f-c461-3888-435c4046f803@gmx.at> <837dso25el.fsf@gnu.org> <1a7ac173-93b7-292a-3dc0-05c68c5be414@gmx.at> <83tuvszjs0.fsf@gnu.org> <5d5c2107-f7bf-62b1-85af-4acac89c7ce6@gmx.at> <83sgbbxlbd.fsf@gnu.org> <8515b084-fd76-20e5-7452-83cb85adce2e@gmx.at> Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="29503"; mail-complaints-to="usenet@ciao.gmane.io" Cc: larsi@gnus.org, 9366@debbugs.gnu.org To: martin rudalics Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Tue Sep 22 16:19:07 2020 Return-path: Envelope-to: geb-bug-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 1kKj8L-0007Qe-9I for geb-bug-gnu-emacs@m.gmane-mx.org; Tue, 22 Sep 2020 16:19:05 +0200 Original-Received: from localhost ([::1]:51058 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1kKj8K-00086R-82 for geb-bug-gnu-emacs@m.gmane-mx.org; Tue, 22 Sep 2020 10:19:04 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:46324) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1kKj7K-0007sb-QX for bug-gnu-emacs@gnu.org; Tue, 22 Sep 2020 10:18:02 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:49461) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1kKj7K-0006CK-H7 for bug-gnu-emacs@gnu.org; Tue, 22 Sep 2020 10:18:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1kKj7K-000833-DT for bug-gnu-emacs@gnu.org; Tue, 22 Sep 2020 10:18:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Eli Zaretskii Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Tue, 22 Sep 2020 14:18:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 9366 X-GNU-PR-Package: emacs Original-Received: via spool by 9366-submit@debbugs.gnu.org id=B9366.160078422328992 (code B ref 9366); Tue, 22 Sep 2020 14:18:02 +0000 Original-Received: (at 9366) by debbugs.gnu.org; 22 Sep 2020 14:17:03 +0000 Original-Received: from localhost ([127.0.0.1]:32774 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1kKj6M-0007XJ-Lm for submit@debbugs.gnu.org; Tue, 22 Sep 2020 10:17:03 -0400 Original-Received: from eggs.gnu.org ([209.51.188.92]:39156) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1kKj6K-0007Rb-H1 for 9366@debbugs.gnu.org; Tue, 22 Sep 2020 10:17:01 -0400 Original-Received: from fencepost.gnu.org ([2001:470:142:3::e]:50452) by eggs.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1kKj6E-000675-Hi; Tue, 22 Sep 2020 10:16:54 -0400 Original-Received: from [176.228.60.248] (port=3946 helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_256_CBC_SHA1:256) (Exim 4.82) (envelope-from ) id 1kKj6D-0001lh-Q0; Tue, 22 Sep 2020 10:16:54 -0400 In-Reply-To: <8515b084-fd76-20e5-7452-83cb85adce2e@gmx.at> (message from martin rudalics on Tue, 22 Sep 2020 09:16:58 +0200) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list 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-mx.org@gnu.org Original-Sender: "bug-gnu-emacs" Xref: news.gmane.io gmane.emacs.bugs:188690 Archived-At: > Cc: larsi@gnus.org, david@harpegolden.net, 9366@debbugs.gnu.org > From: martin rudalics > Date: Tue, 22 Sep 2020 09:16:58 +0200 > > > Yes, I know about WM_DISPLAYCHANGE (although we currently only handle > > the full-screen frames there). > > Has anyone ever confirmed that it correctly handles the full-screen > frames? I don't know. I don't have a system to try that. > > But the corresponding X feature > > requires the use of a special X module, and I don't know what happens > > on macOS. So I thought a platform-independent method that always > > works, and can be implemented in just one place, is a better > > alternative. > > But such a platform-independent method on X would boil down to using the > same special X module as the platform-dependent method. That is, we > would try running XRANDR in either case ... Do we use XRANDR to query the display geometry? > > Besides, adding one more special event comes with minor disadvantages > > of its own -- one more event to disregard in situations like > > while-no-input etc. > > But at least on Windows we have to pay attention to such events anyway. I didn't mean MS-Windows events (a.k.a. "messages"), I meant events in the Emacs event queue. A message coming from the window manager doesn't have to be converted to an Emacs event, it can be handled directly.