From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Eric Abrahamsen Newsgroups: gmane.emacs.bugs Subject: bug#44180: 28.0.50; Emacs frames won't redisplay unless resized Date: Tue, 27 Oct 2020 11:11:26 -0700 Message-ID: <87sg9z1qup.fsf@ericabrahamsen.net> References: <87wnzgkdsj.fsf@ericabrahamsen.net> <83k0vgiyub.fsf@gnu.org> <87k0vgkbgq.fsf@ericabrahamsen.net> <83eeloivgc.fsf@gnu.org> <87lffw1wjv.fsf@ericabrahamsen.net> <7f32498b-1293-f1ee-5636-8ddd5bbff6c1@gmx.at> <87h7qjpeam.fsf@ericabrahamsen.net> <831rhmgx6x.fsf@gnu.org> <874kmipa5r.fsf@ericabrahamsen.net> <9ee49070-b0be-a775-18a2-3c9ee587210b@gmx.at> <87tuugn4ty.fsf@ericabrahamsen.net> Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="=-=-=" Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="28461"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/28.0.50 (gnu/linux) Cc: 44180@debbugs.gnu.org To: martin rudalics Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Tue Oct 27 19:12:16 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 1kXTSB-0007Ig-ED for geb-bug-gnu-emacs@m.gmane-mx.org; Tue, 27 Oct 2020 19:12:15 +0100 Original-Received: from localhost ([::1]:37154 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1kXTSA-0007RP-C4 for geb-bug-gnu-emacs@m.gmane-mx.org; Tue, 27 Oct 2020 14:12:14 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:55238) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1kXTRz-0007Q4-7c for bug-gnu-emacs@gnu.org; Tue, 27 Oct 2020 14:12:03 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:34209) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1kXTRy-0001Q0-Ue for bug-gnu-emacs@gnu.org; Tue, 27 Oct 2020 14:12:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1kXTRy-0003T0-Pz for bug-gnu-emacs@gnu.org; Tue, 27 Oct 2020 14:12:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Eric Abrahamsen Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Tue, 27 Oct 2020 18:12:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 44180 X-GNU-PR-Package: emacs Original-Received: via spool by 44180-submit@debbugs.gnu.org id=B44180.160382229613273 (code B ref 44180); Tue, 27 Oct 2020 18:12:02 +0000 Original-Received: (at 44180) by debbugs.gnu.org; 27 Oct 2020 18:11:36 +0000 Original-Received: from localhost ([127.0.0.1]:45751 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1kXTRY-0003S1-3e for submit@debbugs.gnu.org; Tue, 27 Oct 2020 14:11:36 -0400 Original-Received: from ericabrahamsen.net ([52.70.2.18]:58854 helo=mail.ericabrahamsen.net) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1kXTRW-0003Ro-FG for 44180@debbugs.gnu.org; Tue, 27 Oct 2020 14:11:34 -0400 Original-Received: from localhost (75-172-112-137.tukw.qwest.net [75.172.112.137]) (Authenticated sender: eric@ericabrahamsen.net) by mail.ericabrahamsen.net (Postfix) with ESMTPSA id C3ED0FA0B0; Tue, 27 Oct 2020 18:11:27 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ericabrahamsen.net; s=mail; t=1603822288; bh=NMx5fDz/Dmy+R4QpjNOhOpZyqPcaCGXRRYViKDP3o3M=; h=From:To:Cc:Subject:References:Date:In-Reply-To:From; b=AhKSSHDbin4Do9icY312ljjl8JL2pO39AMjn/N8BfRqv+sSZyL2qqysiK2/gOAV7s VGa7uy0cFsbw49mkL2yyEu26SX0UFmImU9OfWTU58ugqZDNMTgQy3xF17ilmL8uus/ rLtf1a+kbq1r8zcg2clZCBVLqnqSd7RtjVl3R674= In-Reply-To: (martin rudalics's message of "Tue, 27 Oct 2020 10:08:18 +0100") 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:191755 Archived-At: --=-=-= Content-Type: text/plain On 10/27/20 10:08 AM, martin rudalics wrote: >>> Do you get the corresponding focus events (whatever they are now) when >>> you make another frame the fullscreen one? If so, we should probably >>> redraw the frame in that case. >> >> I'm still not at the offending computer, but I think there's a high >> likelihood of confusing myself with conflicting terminology here so, >> just to be clear: this isn't proper fullscreening in the X11 sense. > > I didn't expect it to be but thanks for confirming. > >> i3 >> also does that, but I hardly ever use it since the stacked layout is >> close enough to full screen. In X11 terms I think all that's happening >> is switching of focus between windows, it's just that i3's layout means >> that the unfocused windows are always completely obscured. For some >> reason Emacs now thinks that a window being obscured means that it's now >> an icon. Switching focus back to that window does not un-iconify it. > > Always keep in mind that Emacs has no idea about whether and how a > window has been iconified or focused. It just waits for the > corresponding information from the window manager, believes what the > latter tells and acts (redrawing a frame, for example) accordingly. Okay, thanks. I think I'm going to need more help here, though. I have built master with optimizations off, I start GDB in a controlling emacs, set a breakpoint at xdisp.c:34381 at the beginning of expose_frame, and then "run -Q". That pops up a new frame, and we hit the breakpoint. I run "bt" and have attached the resulting backtrace. Something tells me you need more information than this, though. I went up a frame, to handle_one_xevent, where there are a bunch of local values I can print, but the values of dpyinfo and event are enormous structures. What variables exactly would you need to see? Again, this is on misbehaving master. Once I know exactly what you need I'll do the same for a build with the commit reverted. Thanks, Eric --=-=-= Content-Type: text/plain Content-Disposition: attachment; filename=master.txt #0 expose_frame (f=0x555556313f00, x=1900, y=1030, w=16, h=34) at xdisp.c:34381 #1 0x00005555556f2711 in handle_one_xevent (dpyinfo=0x55555604c400, event=0x7fffffffcd90, finish=0x555555e1f6fc , hold_quit=0x7fffffffd0a0) at xterm.c:8243 #2 0x00005555556f13dd in event_handler_gdk (gxev=0x7fffffffcd90, ev=0x555555fe8ca0, data=0x0) at xterm.c:7768 #3 0x00007ffff75c654f in () at /usr/lib/libgdk-3.so.0 #4 0x00007ffff75ca10b in () at /usr/lib/libgdk-3.so.0 #5 0x00007ffff756e15b in gdk_display_get_event () at /usr/lib/libgdk-3.so.0 #6 0x00007ffff75c9e44 in () at /usr/lib/libgdk-3.so.0 #7 0x00007ffff6f8d914 in g_main_context_dispatch () at /usr/lib/libglib-2.0.so.0 #8 0x00007ffff6fe17d1 in () at /usr/lib/libglib-2.0.so.0 #9 0x00007ffff6f8c121 in g_main_context_iteration () at /usr/lib/libglib-2.0.so.0 #10 0x00007ffff781d597 in gtk_main_iteration () at /usr/lib/libgtk-3.so.0 #11 0x00005555556f5491 in XTread_socket (terminal=0x555555f94dd8, hold_quit=0x7fffffffd0a0) at xterm.c:9395 #12 0x000055555574f92d in gobble_input () at keyboard.c:6890 #13 0x000055555574ff5b in handle_async_input () at keyboard.c:7127 #14 0x000055555574ff7a in process_pending_signals () at keyboard.c:7141 #15 0x000055555581e182 in maybe_quit () at eval.c:1549 #16 0x0000555555829f94 in list_length (list=XIL(0x555555f2dc63)) at fns.c:98 #17 0x000055555582a106 in Flength (sequence=XIL(0x555556832353)) at fns.c:126 #18 0x000055555582baf9 in concat (nargs=1, args=0x7fffffffd318, target_type=Lisp_Cons, last_special=false) at fns.c:666 #19 0x000055555582b8d6 in Fcopy_sequence (arg=XIL(0x555556832353)) at fns.c:598 #20 0x00005555557492b0 in timer_check () at keyboard.c:4398 #21 0x0000555555746f69 in readable_events (flags=1) at keyboard.c:3405 #22 0x000055555574f743 in get_input_pending (flags=1) at keyboard.c:6805 #23 0x00005555557591e4 in detect_input_pending_run_timers (do_display=true) at keyboard.c:10366 #24 0x0000555555891fa5 in wait_reading_process_output (time_limit=0, nsecs=0, read_kbd=-1, do_display=true, wait_for_cell=XIL(0), wait_proc=0x0, just_wait_proc=0) at process.c:5702 #25 0x0000555555747f1b in kbd_buffer_get_event (kbp=0x7fffffffd920, used_mouse_menu=0x7fffffffdf2d, end_time=0x0) at keyboard.c:3874 #26 0x0000555555742678 in read_event_from_main_queue (end_time=0x0, local_getcjmp=0x7fffffffdd30, used_mouse_menu=0x7fffffffdf2d) at keyboard.c:2160 #27 0x0000555555742a88 in read_decoded_event_from_main_queue (end_time=0x0, local_getcjmp=0x7fffffffdd30, prev_event=XIL(0), used_mouse_menu=0x7fffffffdf2d) at keyboard.c:2224 #28 0x0000555555744cd2 in read_char (commandflag=1, map=XIL(0x5555568323b3), prev_event=XIL(0), used_mouse_menu=0x7fffffffdf2d, end_time=0x0) at keyboard.c:2834 #29 0x0000555555757125 in read_key_sequence (keybuf=0x7fffffffe110, prompt=XIL(0), dont_downcase_last=false, can_return_switch_frame=true, fix_current_buffer=true, prevent_redisplay=false) at keyboard.c:9552 #30 0x000055555573fd76 in command_loop_1 () at keyboard.c:1354 #31 0x000055555581db25 in internal_condition_case (bfun=0x55555573f8dc , handlers=XIL(0x90), hfun=0x55555573eed0 ) at eval.c:1359 #32 0x000055555573f4c5 in command_loop_2 (ignore=XIL(0)) at keyboard.c:1095 #33 0x000055555581cf79 in internal_catch (tag=XIL(0xd710), func=0x55555573f498 , arg=XIL(0)) at eval.c:1120 #34 0x000055555573f464 in command_loop () at keyboard.c:1074 #35 0x000055555573e9b9 in recursive_edit_1 () at keyboard.c:718 #36 0x000055555573ebb0 in Frecursive_edit () at keyboard.c:790 #37 0x000055555573a984 in main (argc=2, argv=0x7fffffffe598) at emacs.c:2047 --=-=-=--