From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.bugs Subject: bug#9366: Display geometry change hook Date: Thu, 25 Aug 2011 08:55:09 +0300 Message-ID: <83fwkqghmq.fsf@gnu.org> References: <4E55DACA.6080401@harpegolden.net> Reply-To: Eli Zaretskii NNTP-Posting-Host: lo.gmane.org X-Trace: dough.gmane.org 1314251733 11978 80.91.229.12 (25 Aug 2011 05:55:33 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Thu, 25 Aug 2011 05:55:33 +0000 (UTC) Cc: 9366@debbugs.gnu.org To: David De La Harpe Golden Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Thu Aug 25 07:55:29 2011 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([140.186.70.17]) by lo.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1QwSuW-0001nN-Qu for geb-bug-gnu-emacs@m.gmane.org; Thu, 25 Aug 2011 07:55:28 +0200 Original-Received: from localhost ([::1]:37067 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QwSuW-0004Gk-Gn for geb-bug-gnu-emacs@m.gmane.org; Thu, 25 Aug 2011 01:55:28 -0400 Original-Received: from eggs.gnu.org ([140.186.70.92]:44234) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QwSuT-0004Gf-W1 for bug-gnu-emacs@gnu.org; Thu, 25 Aug 2011 01:55:26 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1QwSuS-0003A2-Pa for bug-gnu-emacs@gnu.org; Thu, 25 Aug 2011 01:55:25 -0400 Original-Received: from debbugs.gnu.org ([140.186.70.43]:59510) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QwSuS-00039w-KS for bug-gnu-emacs@gnu.org; Thu, 25 Aug 2011 01:55:24 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.69) (envelope-from ) id 1QwSwz-0004wo-HJ; Thu, 25 Aug 2011 01:58:01 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Eli Zaretskii Original-Sender: debbugs-submit-bounces@debbugs.gnu.org Resent-To: owner@debbugs.gnu.org Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Thu, 25 Aug 2011 05:58:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 9366 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: Original-Received: via spool by 9366-submit@debbugs.gnu.org id=B9366.131425186919000 (code B ref 9366); Thu, 25 Aug 2011 05:58:01 +0000 Original-Received: (at 9366) by debbugs.gnu.org; 25 Aug 2011 05:57:49 +0000 Original-Received: from localhost ([127.0.0.1] helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1QwSwm-0004wP-Vi for submit@debbugs.gnu.org; Thu, 25 Aug 2011 01:57:49 -0400 Original-Received: from mtaout20.012.net.il ([80.179.55.166]) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1QwSwk-0004wI-V7 for 9366@debbugs.gnu.org; Thu, 25 Aug 2011 01:57:47 -0400 Original-Received: from conversion-daemon.a-mtaout20.012.net.il by a-mtaout20.012.net.il (HyperSendmail v2007.08) id <0LQG00H00Z1C7R00@a-mtaout20.012.net.il> for 9366@debbugs.gnu.org; Thu, 25 Aug 2011 08:55:08 +0300 (IDT) Original-Received: from HOME-C4E4A596F7 ([84.228.21.112]) by a-mtaout20.012.net.il (HyperSendmail v2007.08) with ESMTPA id <0LQG00GUBZ3TJFD0@a-mtaout20.012.net.il>; Thu, 25 Aug 2011 08:55:05 +0300 (IDT) In-reply-to: <4E55DACA.6080401@harpegolden.net> X-012-Sender: halo1@inter.net.il X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.11 Precedence: list Resent-Date: Thu, 25 Aug 2011 01:58:01 -0400 X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 1) X-Received-From: 140.186.70.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-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.bugs:50326 Archived-At: > Date: Thu, 25 Aug 2011 06:16:58 +0100 > From: David De La Harpe Golden > > Dunno about w32 as yet, but presumably it has something similar. On MS-Windows there's the WM_DISPLAYCHANGE message sent to the message pump. Emacs already accepts that message (see w32term.c), but currently does nothing with it except announcing the change to the attached debugger. However, on Windows the message also specifies the new resolution, so this: > + inev.ie.kind = SCREEN_CHANGE_NOTIFY_EVENT; > + inev.ie.frame_or_window = XCAR(dpyinfo->name_list_element); is not general enough: there should be a way to provide the new dimensions to the event queue. It also means that a "normal" hook is insufficient to handle this event, it should be a -functions style hook.