From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Jan =?UTF-8?Q?Dj=C3=A4rv?= Newsgroups: gmane.emacs.bugs Subject: bug#18451: 24.4.50; 'toggle-frame-fullscreen' can cut off minibuffer Date: Tue, 16 Sep 2014 20:38:21 +0200 Message-ID: <3ABE107B-3F0E-465A-908A-5943E493DDC0@swipnet.se> References: <87mwa65dte.fsf@alarm.home> <65FD46C3-80B3-497B-B3B3-7010772CD56F@swipnet.se> <87vboum4cq.fsf@ixlun.home> <98621C9D-9606-42E4-AC57-02D6F6B30CD8@swipnet.se> <87vbori2yi.fsf@matt-desktop.home> <0264F34D-0837-401E-9215-C401BD62CF99@swipnet.se> <87oauitjiw.fsf@mattleach.net> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 (Mac OS X Mail 7.3 \(1878.6\)) Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: quoted-printable X-Trace: ger.gmane.org 1410892769 10179 80.91.229.3 (16 Sep 2014 18:39:29 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Tue, 16 Sep 2014 18:39:29 +0000 (UTC) Cc: 18451@debbugs.gnu.org To: Matthew Leach Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Tue Sep 16 20:39:21 2014 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1XTxer-000889-J2 for geb-bug-gnu-emacs@m.gmane.org; Tue, 16 Sep 2014 20:39:21 +0200 Original-Received: from localhost ([::1]:40166 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XTxer-0007vK-5F for geb-bug-gnu-emacs@m.gmane.org; Tue, 16 Sep 2014 14:39:21 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:59611) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XTxeh-0007oc-PP for bug-gnu-emacs@gnu.org; Tue, 16 Sep 2014 14:39:17 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1XTxec-0001wz-Dw for bug-gnu-emacs@gnu.org; Tue, 16 Sep 2014 14:39:11 -0400 Original-Received: from debbugs.gnu.org ([140.186.70.43]:51137) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XTxec-0001on-Au for bug-gnu-emacs@gnu.org; Tue, 16 Sep 2014 14:39:06 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.80) (envelope-from ) id 1XTxeY-0008B6-Tu for bug-gnu-emacs@gnu.org; Tue, 16 Sep 2014 14:39:03 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Jan =?UTF-8?Q?Dj=C3=A4rv?= Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Tue, 16 Sep 2014 18:39:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 18451 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: Original-Received: via spool by 18451-submit@debbugs.gnu.org id=B18451.141089271131395 (code B ref 18451); Tue, 16 Sep 2014 18:39:02 +0000 Original-Received: (at 18451) by debbugs.gnu.org; 16 Sep 2014 18:38:31 +0000 Original-Received: from localhost ([127.0.0.1]:42701 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1XTxe2-0008AH-96 for submit@debbugs.gnu.org; Tue, 16 Sep 2014 14:38:30 -0400 Original-Received: from mailfe03.swip.net ([212.247.154.65]:36792 helo=swip.net) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1XTxdy-0008A3-N0 for 18451@debbugs.gnu.org; Tue, 16 Sep 2014 14:38:27 -0400 X-T2-Spam-Status: No, hits=-0.0 required=5.0 tests=BAYES_40 Original-Received: from hosdjarv.se (account mj138573@tele2.se [46.59.42.57] verified) by mailfe03.swip.net (CommuniGate Pro SMTP 5.4.4) with ESMTPA id 365577683; Tue, 16 Sep 2014 20:38:22 +0200 In-Reply-To: <87oauitjiw.fsf@mattleach.net> X-Mailer: Apple Mail (2.1878.6) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.15 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 3.x 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:93410 Archived-At: Hello. 14 sep 2014 kl. 15:32 skrev Matthew Leach : > Jan Dj=E4rv writes: >=20 >> Hello. >=20 > Hi Jan, >=20 >=20 > [...] >=20 >> If you compile Emacs yourself, you can debug this by tracing the >> ConfigureNotify Emacs gets and/or the calls to change_frame_size and >> xg_frame_resized. Obviously some call is either not made or made = with >> the wrong parameters. It may be a race condition so that Emacs gets >> ConfigureNotify out of sequence. >=20 > I have added trace prints in the functions that you suggested and = things > do look different when the bug occurs. >=20 >=20 > The following trace is printed when the resize happens correctly (the > trace seems to be the same between bug-free resize operations). >=20 > ConfigureNotify event received. > ConfigureNotify event received. > ConfigureNotify event received. > xg_frame_resized(0x6896f8, 1366, 768); > change_frame_size(0x6896f8, 1350, 768, 0, 1, 0, 1); > change_frame_size(0x6896f8, 1350, 768, 0, 0, 0, 1); > ConfigureNotify event received. > ConfigureNotify event received. > ConfigureNotify event received. > ConfigureNotify event received. > xg_frame_resized(0x6896f8, 679, 729); > change_frame_size(0x6896f8, 663, 729, 0, 1, 0, 1); > change_frame_size(0x6896f8, 663, 729, 0, 0, 0, 1); > ConfigureNotify event received >=20 > This is the trace when the bug occurs (again, the trace is consistent > between buggy resize operations): >=20 The question is where does change_frame_size get called from from if = they are not from xg_frame_resized? As a long shot, try removing this line: do_pending_window_change (0); in xg_frame_resized. Jan D. > ConfigureNotify event received. > ConfigureNotify event received. > change_frame_size(0x6896f8, 1350, 768, 0, 1, 0, 1); > ConfigureNotify event received. > ConfigureNotify event received. > change_frame_size(0x6896f8, 1350, 768, 0, 0, 1, 1); > ConfigureNotify event received. > ConfigureNotify event received. > ConfigureNotify event received. > xg_frame_resized(0x6896f8, 679, 729); > change_frame_size(0x6896f8, 663, 729, 0, 1, 0, 1); > change_frame_size(0x6896f8, 663, 729, 0, 0, 0, 1); > ConfigureNotify event received. > ConfigureNotify event received. > xg_frame_resized(0x6896f8, 672, 720); > change_frame_size(0x6896f8, 656, 720, 0, 1, 0, 1); > change_frame_size(0x6896f8, 656, 720, 0, 0, 0, 1); >=20 >=20 > xg_frame_resized doesn't seem to be called on the buggy trace when = entering > full-screen. Any ideas where else I could look? > --=20 > Matt