From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: martin rudalics Newsgroups: gmane.emacs.bugs Subject: bug#9366: Display geometry change hook Date: Sun, 20 Sep 2020 14:24:10 +0200 Message-ID: <1a7ac173-93b7-292a-3dc0-05c68c5be414@gmx.at> References: <4E55DACA.6080401@harpegolden.net> <87363dpyz3.fsf@gnus.org> <838sd53h9c.fsf@gnu.org> <0984dc8a-220f-c461-3888-435c4046f803@gmx.at> <837dso25el.fsf@gnu.org> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="32165"; mail-complaints-to="usenet@ciao.gmane.io" Cc: larsi@gnus.org, 9366@debbugs.gnu.org To: Eli Zaretskii Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Sun Sep 20 14:25:59 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 1kJyPm-0008EX-Hz for geb-bug-gnu-emacs@m.gmane-mx.org; Sun, 20 Sep 2020 14:25:58 +0200 Original-Received: from localhost ([::1]:43394 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1kJyPk-0005IE-Cz for geb-bug-gnu-emacs@m.gmane-mx.org; Sun, 20 Sep 2020 08:25:57 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:52624) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1kJyOr-0005I1-W1 for bug-gnu-emacs@gnu.org; Sun, 20 Sep 2020 08:25:02 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:37565) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1kJyOr-0004ZH-M0 for bug-gnu-emacs@gnu.org; Sun, 20 Sep 2020 08:25:01 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1kJyOr-00036n-Hr for bug-gnu-emacs@gnu.org; Sun, 20 Sep 2020 08:25:01 -0400 X-Loop: help-debbugs@gnu.org Resent-From: martin rudalics Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sun, 20 Sep 2020 12:25:01 +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.160060466311898 (code B ref 9366); Sun, 20 Sep 2020 12:25:01 +0000 Original-Received: (at 9366) by debbugs.gnu.org; 20 Sep 2020 12:24:23 +0000 Original-Received: from localhost ([127.0.0.1]:49111 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1kJyOF-00035q-5H for submit@debbugs.gnu.org; Sun, 20 Sep 2020 08:24:23 -0400 Original-Received: from mout.gmx.net ([212.227.15.15]:52855) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1kJyOC-00035a-Os for 9366@debbugs.gnu.org; Sun, 20 Sep 2020 08:24:22 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=gmx.net; s=badeba3b8450; t=1600604653; bh=XSzKhFqxdyHB+6xf7PvQaH+vSzOBcEMarzzzBZQ6a6w=; h=X-UI-Sender-Class:Subject:To:Cc:References:From:Date:In-Reply-To; b=QHrMf4oDBVZRjFotxIuaC66DNrIk+b/8EQV1KZR7dsCeInx65wYvCsAkUCWffv9VM hCzg3YrAIdx9sWRKUXYv10iXhUy1s65uetcwo4hFlp8bvwPM8OFU+eYKPrRig66iUu 1tVjQdqFELeneXO0J/QTPTc+6tRJESlP7B4lUy70= X-UI-Sender-Class: 01bb95c1-4bf8-414a-932a-4f6e2808ef9c Original-Received: from [192.168.1.101] ([46.125.249.82]) by mail.gmx.com (mrgmx005 [212.227.17.190]) with ESMTPSA (Nemesis) id 1MNKm0-1k8Mis441i-00OooV; Sun, 20 Sep 2020 14:24:13 +0200 In-Reply-To: <837dso25el.fsf@gnu.org> Content-Language: en-US X-Provags-ID: V03:K1:7OVbaLaxeI7Z76efa9GH850W6SY5x0YmPlwDcE73rSYSwdhY692 9iG9KXJ2q/D/VdxSR9zVX7XxkxersecK9MtsFF+gdHkBcHvFoI2sIu3Rv8PeMBRsJ+5yrXH 0OMAheqz+YrbV0z31jvOnZT0GPUOV6AL0yj4rIMWvmmmdlGgrDE7vI+/Fb5V0nZhKu4KSXI HcbH9gQ8DkQcI0fOSsx4g== X-UI-Out-Filterresults: notjunk:1;V03:K0:IAcaWYchlOs=:uFvduUQ45jggYCJWN6AdJ9 3FByErLEV9x94NV2OY6BLm4cMnxsDizwWrHwXyn+FszcI/kJ5TH6Qox8S6ysu1wzPnGpaMWEK oyUWZDrhDI7ZoRxcTDbIH7mMIQOLeRpnzglF6BJ/MKBgrFURB6oLFJajf0bN1pcujajRAg9MA fR5pAUVtcrHVt1OnXUwFl6wWwI+uhTDYRxKjjQaYfBt5c6usM5C+Rn2ToX5HzcEXO3Ov7KQEj SlLkh3Sp27ixChemD+Wv5MAXWlsISMT5qCTeLjVRUJWL7wAw0HmEKhzhHU8VqTR38qIj61pPS BP4kMuot9Ibqamxdx0qkDCFTkpMMZWcd70bRSzMl0Wtlebnndjt62jcKD0NIbVFZtJCfV8TR1 9gvOL96RV/uFM0tRmRfF+PuBrpCnVFlDyY4eHfotGfdPTjMV/RY9TOk7YRhJdpkP4rvGOLalW MRs1IAe5172ddxQ13urC3IKSQKiZjhS85rzVNewpRX7ly04tU+CIpsA0MB0qujYTeDaGJq+ij qZSXCKK/EfhIYV4Exxrh7/71yRdW4tQHDqmnZZ2gc6wAOV9InxNHmuS1e4xP6l+K/EoktwwAu buZY28iS+eqrRbMU3OdZ7gGLHxogekZegLc2tiU3BJCxWgKiM+mReye8dvq+/r/nc4dER+Zdg 8rh7i31Ep0N9VtPMLL+6ZCfqhfiprPWaX8mO3HLu53bP+G2IHEZ2BRok4XdAj8JEJYC+ywnlH M21kGeAUGQuLE5w0HR9SU7SOR9lLJDY+GaLUCu0kkW3PxdmPV9f8KoOmOJE2D4Q/qHC+YCn3 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:188503 Archived-At: > So this is only about switching to a different display? A different geometry but still on the same display IIUC. > And you are > saying that Emacs in general doesn't know about such display changes? I don't know. Are we already informed when the user plugs in a new display? > Would it work to test the display geometry from focus-in-hook? Sounds expensive (BTW 'focus-in-hook' is obsolete since 27.1). And what about a user who currently has no frame on that display but might consider switching to it when its geometry meets certain requirements? > Or > from a timer? To poll the geometry? Sounds much too expensive too. If and when the underlying windowing system informs us of display changes, I would just react to them. What's speaking against it? martin