From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: Lars Ingebrigtsen Newsgroups: gmane.emacs.bugs Subject: bug#27357: 26.0.50; Emacs starts fullscreen in Ubuntu 17.04 Date: Wed, 05 Jul 2017 21:42:17 +0200 Message-ID: <87a84ik6w6.fsf@mouse> References: <594143AB.7040500@gmx.at> <59423E58.8030606@gmx.at> <59425D45.1010006@gmx.at> NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: blaine.gmane.org 1499283799 11704 195.159.176.226 (5 Jul 2017 19:43:19 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Wed, 5 Jul 2017 19:43:19 +0000 (UTC) User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/26.0.50 (gnu/linux) Cc: 27357@debbugs.gnu.org To: martin rudalics Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Wed Jul 05 21:43:15 2017 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by blaine.gmane.org with esmtp (Exim 4.84_2) (envelope-from ) id 1dSqCg-0002kL-Gq for geb-bug-gnu-emacs@m.gmane.org; Wed, 05 Jul 2017 21:43:14 +0200 Original-Received: from localhost ([::1]:47807 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1dSqCl-0006rd-QA for geb-bug-gnu-emacs@m.gmane.org; Wed, 05 Jul 2017 15:43:19 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:48296) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1dSqCZ-0006q2-SF for bug-gnu-emacs@gnu.org; Wed, 05 Jul 2017 15:43:09 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1dSqCU-0006f8-Hr for bug-gnu-emacs@gnu.org; Wed, 05 Jul 2017 15:43:07 -0400 Original-Received: from debbugs.gnu.org ([208.118.235.43]:51064) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1dSqCU-0006f4-Dv for bug-gnu-emacs@gnu.org; Wed, 05 Jul 2017 15:43:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1dSqCU-00026y-6z for bug-gnu-emacs@gnu.org; Wed, 05 Jul 2017 15:43:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Lars Ingebrigtsen Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Wed, 05 Jul 2017 19:43:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 27357 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: Original-Received: via spool by 27357-submit@debbugs.gnu.org id=B27357.14992837458075 (code B ref 27357); Wed, 05 Jul 2017 19:43:02 +0000 Original-Received: (at 27357) by debbugs.gnu.org; 5 Jul 2017 19:42:25 +0000 Original-Received: from localhost ([127.0.0.1]:53741 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1dSqBt-00026A-6i for submit@debbugs.gnu.org; Wed, 05 Jul 2017 15:42:25 -0400 Original-Received: from hermes.netfonds.no ([80.91.224.195]:40339) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1dSqBr-000262-A6 for 27357@debbugs.gnu.org; Wed, 05 Jul 2017 15:42:23 -0400 Original-Received: from cm-84.209.243.26.getinternet.no ([84.209.243.26] helo=mouse) by hermes.netfonds.no with esmtpsa (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.84_2) (envelope-from ) id 1dSqBl-0002QY-Nd; Wed, 05 Jul 2017 21:42:19 +0200 In-Reply-To: <59425D45.1010006@gmx.at> (martin rudalics's message of "Thu, 15 Jun 2017 12:11:17 +0200") 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: 208.118.235.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:134221 Archived-At: Man, this stuff is difficult to figure out... I think I've found the call that resizes the frame erroneously. I'm running under gdb with (gdb) run -Q -geometry 80x20 to get a smallish frame. change_frame_size is called a lot of times, but eventually with the correct size: #0 0x00000000004272f9 in adjust_frame_size (f=0x133ec30 , new_width=1040, new_height=520, inhibit=0, pretend=true, parameter=XIL(0xd800)) at frame.c:546 #1 0x000000000053b497 in Fx_create_frame (parms=XIL(0x1151c43)) at xfns.c:3996 So everything is OK up till now: Emacs has popped up a frame, and it has the right size. Then shenanigans start, and they are all seemingly triggered from inside gtk: 0 0x0000000000424bf8 in change_frame_size (f=0x133ec30 , new_width=2112, new_height=1040, pretend=false, delay=true, safe=false, pixelwise=true) at dispnew.c:5546 #1 0x000000000054de1d in xg_frame_resized (f=0x133ec30 , pixelwidth=2144, pixelheight=1040) at gtkutil.c:886 #2 0x000000000052a10c in handle_one_xevent (dpyinfo=0x2f8a540, event=0x7fffffffb280, finish=0xc6dc14 , hold_quit=0x7fffffffb550) at xterm.c:8676 #3 0x000000000052785f in event_handler_gdk (gxev=0x7fffffffb280, ev=0x2d6d3d0, data=0x0) at xterm.c:7538 #4 0x00007ffff66f4c81 in () at /usr/lib/x86_64-linux-gnu/libgdk-3.so.0 #5 0x00007ffff66f4f39 in () at /usr/lib/x86_64-linux-gnu/libgdk-3.so.0 #6 0x00007ffff66bf259 in gdk_display_get_event () at /usr/lib/x86_64-linux-gnu/libgdk-3.so.0 #7 0x00007ffff66f4cf2 in () at /usr/lib/x86_64-linux-gnu/libgdk-3.so.0 #8 0x00007ffff5653377 in g_main_context_dispatch () at /lib/x86_64-linux-gnu/libglib-2.0.so.0 #9 0x00007ffff56535e0 in () at /lib/x86_64-linux-gnu/libglib-2.0.so.0 #10 0x00007ffff565368c in g_main_context_iteration () xg_frame_resized has apparently now decided that the frame should be 2112x1040 instead of 1040x520, which is the real target size. So... twice as high, and slightly less as wide. And then: #0 0x0000000000424bf8 in change_frame_size (f=0x133ec30 , new_width=2528, new_height=1264, pretend=false, delay=true, safe=false, pixelwise=true) at dispnew.c:5546 #1 0x000000000054de1d in xg_frame_resized (f=0x133ec30 , pixelwidth=2560, pixelheight=1264) at gtkutil.c:886 #2 0x000000000052a10c in handle_one_xevent (dpyinfo=0x2e75b70, event=0x7fffffff90b0, finish=0xc6dc14 , hold_quit=0x7fffffff9380) at xterm.c:8676 #3 0x000000000052785f in event_handler_gdk (gxev=0x7fffffff90b0, ev=0x2d6d6f0, data=0x0) at xterm.c:7538 #4 0x00007ffff66f4c81 in () at /usr/lib/x86_64-linux-gnu/libgdk-3.so.0 #5 0x00007ffff66f4f39 in () at /usr/lib/x86_64-linux-gnu/libgdk-3.so.0 #6 0x00007ffff66bf259 in gdk_display_get_event () at /usr/lib/x86_64-linux-gnu/libgdk-3.so.0 #7 0x00007ffff66f4cf2 in () at /usr/lib/x86_64-linux-gnu/libgdk-3.so.0 #8 0x00007ffff5653377 in g_main_context_dispatch () at /lib/x86_64-linux-gnu/libglib-2.0.so.0 #9 0x00007ffff56535e0 in () at /lib/x86_64-linux-gnu/libglib-2.0.so.0 #10 0x00007ffff565368c in g_main_context_iteration () at /lib/x86_64-linux-gnu/libglib-2.0.so.0 #11 0x00007ffff6bc2275 in gtk_main_iteration () at /usr/lib/x86_64-linux-gnu/libgtk-3.so.0 #12 0x000000000052ade8 in XTread_socket (terminal=0x1275e40