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#48809: 28.0.50; Missing Lucid/GTK2 graphical elements on tiling WM Date: Fri, 4 Jun 2021 11:17:05 +0200 Message-ID: <1e9040b0-dbb8-fc45-2bb7-6ec6d9bf81eb@gmx.at> References: <875yyv2jsi.fsf@tcd.ie> 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="34815"; mail-complaints-to="usenet@ciao.gmane.io" To: "Basil L. Contovounesios" , 48809@debbugs.gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Fri Jun 04 11:24:54 2021 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 1lp64U-0008wN-TQ for geb-bug-gnu-emacs@m.gmane-mx.org; Fri, 04 Jun 2021 11:24:54 +0200 Original-Received: from localhost ([::1]:39600 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1lp64T-0002s4-VZ for geb-bug-gnu-emacs@m.gmane-mx.org; Fri, 04 Jun 2021 05:24:53 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:40514) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lp5xq-0002Lg-2S for bug-gnu-emacs@gnu.org; Fri, 04 Jun 2021 05:18:02 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:33792) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1lp5xp-00033t-R8 for bug-gnu-emacs@gnu.org; Fri, 04 Jun 2021 05:18:01 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1lp5xp-0000uP-MS for bug-gnu-emacs@gnu.org; Fri, 04 Jun 2021 05:18: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: Fri, 04 Jun 2021 09:18:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 48809 X-GNU-PR-Package: emacs Original-Received: via spool by 48809-submit@debbugs.gnu.org id=B48809.16227982381909 (code B ref 48809); Fri, 04 Jun 2021 09:18:01 +0000 Original-Received: (at 48809) by debbugs.gnu.org; 4 Jun 2021 09:17:18 +0000 Original-Received: from localhost ([127.0.0.1]:45338 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1lp5x7-0000UQ-SU for submit@debbugs.gnu.org; Fri, 04 Jun 2021 05:17:18 -0400 Original-Received: from mout.gmx.net ([212.227.17.21]:56731) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1lp5x6-0000Oe-Ay for 48809@debbugs.gnu.org; Fri, 04 Jun 2021 05:17:16 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=gmx.net; s=badeba3b8450; t=1622798228; bh=zg2Z/xUNJkC4AQXbwwFBqVA6VnK2zP47D6+OBziGRhc=; h=X-UI-Sender-Class:Subject:To:References:From:Date:In-Reply-To; b=kmsNGVRlKTtbHk2zn5xrJCH2fvwMhsy4mvWbHQgbUALnprQbBYGvLLgVaCOt2Qyju ENcTOa0dD3rMb5A+SvV7Rad1F7ujH6whhvDbQdx0spaCvLcf2VuKk7McKdGLNBsDDJ w5QnfsXG0JnzWEfQgYRaV+GbWlRC0TA/ZoCA5r1M= X-UI-Sender-Class: 01bb95c1-4bf8-414a-932a-4f6e2808ef9c Original-Received: from [192.168.1.100] ([213.142.96.52]) by mail.gmx.net (mrgmx104 [212.227.17.168]) with ESMTPSA (Nemesis) id 1N3se8-1lOSKS2F2u-00zjhr; Fri, 04 Jun 2021 11:17:08 +0200 In-Reply-To: <875yyv2jsi.fsf@tcd.ie> Content-Language: en-US X-Provags-ID: V03:K1:kpqn3+687yE4WXwCq6FeQXa8fNMX2i4S/d/KLs7La05XBQ8wjV8 dI6KOIVYdjfaTJZgnnSsom8cMXS+eOe9W5Q0o8lSSYEzfjHUHV3vH7SLQcs2IjcW4bmsWR7 31Rtqf12EwICdSxhfCjnUwJnhvxazpAyulSF/buvZnFU0sxIFjkszHtHD+8zJaW1vKgrz8w 5LEak3PJCMAcIDz0G8z5w== X-UI-Out-Filterresults: notjunk:1;V03:K0:vj/7vS+86DM=:WlGYELi9PahLJMS/izGPFk i9Ra000Gi1p1wzpv9/dny7u5M1YHazhNGK0tY23oI/QPOQHOo8PEP3kUVPUUP/CBkVBjW9P2g 1KBc7ZSpTqwK9k4N0J0j5HfUAFtoKQb8bSM1nN3hkRhxbDGPUBYemBiVKgjPa9QtTLViDpF1X 7Krk7fDykczi8oZBuRN5e4ggChYxtiXen3OR+zGeFHEYb+/5bFzHcru0R/jrRAkj7qYC63JSN w5CO7ub6LP3TWt/1LwJdyBArSWUVcDfqkIHoEpuj1ady4tc4vmhjcwfc7/mc+KZf+XCQtpL/Q visDejtwD4xcM53eyszGpIivy10Ob8PW3h8lw3TAidatpGAaWf5O8sX3gbuDGAULZifamX7mo hcJ9eremzcv4+pCvWZM++SROj+2k/nMzOSRxxn93ch6c+jGnCFvT4J81GS77/3r5A5TsIuFta 4JteJ1vA1NiJT07utHKV4O6Rvln/WPLcNGOWCtfAYkci86tXqeqNsw2atdASf270PkfYaeUfW zkY0oVpDJWhT3DCK5CePk4WXM7/ZlR8j/iwoHHBX/mp0cxMC42hYdHrB0wH1vaB9GrCu5NDRQ 9jC+kCdSnZRmDc+mB2WtTIDlVoJQ9iqKC44UbcLbCloNATc4X7G6riPxc0i3TOJ9mGUe0l0St 597yuHkKngmTupPjWDYllZzqsemKW2ee5kyOsfHYlm+shvV/GLM+s8blbxlJ0flYc0iFP+U9X JAgCd6n2VPjjljbjwlmnD4mkLqJtxqVjFBodI/hUqQwg0Qz9q0WfOLjWU2YkDdwrJCUqPo8N 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:207986 Archived-At: > Further to the tangent in bug#48229, the menu, tool, and scroll bars are > sometimes not drawn when creating new Lucid/GTK2 frames under the tiling > WM Xmonad. The missing elements reappear after the affected frames are > resized. > > I cannot reproduce any of these issues with GTK3/PGTK, but the Lucid > behaviour is present since at least Emacs 24.5.1 (I don't have old GTK2 > builds at hand). Affected Emacs 28 configurations follow my signature. Thanks. The only thing that is evident from your examples is that only toolkit elements are affected. Elements Emacs draws itself are not missing in your examples. I suppose the behavior you see happens because Xmonad rejects a first size proposal of Emacs for these elements and does not draw them, notifies Emacs that it wants different sizes for these elements and that notification gets lost - somehow and at least sometimes. I have no good explanation why things work with GTK3 and not with GTK2 though. Are all behaviors you reported reliably reproducible? One thing I'd like to exclude is that this is yet another instance of Tom Gillespie's observation that Emacs does not play well with window managers that do not set _NET_WM_STATE. x_get_current_wm_state apparently fails on such systems and we probably never (or at least not always) get a not_hidden frame in the MapNotify case and have to wait for a ConfigureNotify instead (which your remark about the reappearance of missing elements after resizing would confirm). To check this please do (setq frame-size-history '(100)) and proceed with some of your broken behaviors. I'd be interested if when you then do (frame--size-history) and look into the *frame-size-history* buffer you can see "MapNotify, not hidden & not iconified" entries. Alternatively, you could set a watchpoint at xterm.c's bool not_hidden = x_get_current_wm_state (f, event->xmap.window, &value, &sticky); and see whether a value of true is ever returned. One thing you could try is to change if (v == 1 && f->visible != 1) redisplay_other_windows (); to if (v == 1) redisplay_other_windows (); in frame.h's SET_FRAME_VISIBLE so maybe Emacs would send the modified elements (modified because the WM changed their size to something Emacs didn't ask for) again. Honestly, I have no hope that this would help. martin