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#48413: 28.0.50; emacs does not repaint the window after switching workspaces in Xmonad Date: Fri, 14 May 2021 11:50:38 +0200 Message-ID: <4709c228-9735-4f49-b930-3189ca6c0eed@gmx.at> References: 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="34660"; mail-complaints-to="usenet@ciao.gmane.io" To: platon7pronko@gmail.com, 48413@debbugs.gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Fri May 14 11:51:37 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 1lhUTo-0008re-MQ for geb-bug-gnu-emacs@m.gmane-mx.org; Fri, 14 May 2021 11:51:36 +0200 Original-Received: from localhost ([::1]:55676 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1lhUTn-0003GL-DD for geb-bug-gnu-emacs@m.gmane-mx.org; Fri, 14 May 2021 05:51:35 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:50084) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lhUTG-0003FG-Gz for bug-gnu-emacs@gnu.org; Fri, 14 May 2021 05:51:02 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:33504) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1lhUTF-0004l1-N5 for bug-gnu-emacs@gnu.org; Fri, 14 May 2021 05:51:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1lhUTF-0004nF-KU for bug-gnu-emacs@gnu.org; Fri, 14 May 2021 05:51: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, 14 May 2021 09:51:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 48413 X-GNU-PR-Package: emacs X-Debbugs-Original-To: Platon Pronko , bug-gnu-emacs@gnu.org Original-Received: via spool by submit@debbugs.gnu.org id=B.162098585218410 (code B ref -1); Fri, 14 May 2021 09:51:01 +0000 Original-Received: (at submit) by debbugs.gnu.org; 14 May 2021 09:50:52 +0000 Original-Received: from localhost ([127.0.0.1]:45050 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1lhUT6-0004ms-KP for submit@debbugs.gnu.org; Fri, 14 May 2021 05:50:52 -0400 Original-Received: from lists.gnu.org ([209.51.188.17]:57172) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1lhUT4-0004mj-R1 for submit@debbugs.gnu.org; Fri, 14 May 2021 05:50:51 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:49996) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lhUT4-00036H-G7 for bug-gnu-emacs@gnu.org; Fri, 14 May 2021 05:50:50 -0400 Original-Received: from mout.gmx.net ([212.227.15.15]:57215) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lhUSx-0004aS-Fc for bug-gnu-emacs@gnu.org; Fri, 14 May 2021 05:50:50 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=gmx.net; s=badeba3b8450; t=1620985839; bh=4gRkITrEfb3EusiPdVYJjDyDqrsj+VmQ5kFsqpQhrJA=; h=X-UI-Sender-Class:Subject:To:References:From:Date:In-Reply-To; b=IusBSbRfm2/1et8nwn6vHDNzumlSz2jI9nPG2/rF2oDFfjFvaibrsCEc1+lDN/fxR xtcJjDLWWD/2GVnz0SX5xP8LZBdPA3hEm2M4qc+nAJd3IfHZOWPxPq1XgrLkpOciCT 3u2eugJJ270gO8xAFEEJpjo/1JfqPk0frqZtwXp8= X-UI-Sender-Class: 01bb95c1-4bf8-414a-932a-4f6e2808ef9c Original-Received: from [192.168.1.100] ([212.95.5.218]) by mail.gmx.net (mrgmx004 [212.227.17.190]) with ESMTPSA (Nemesis) id 1N0X8o-1lKTN51Ihg-00wW57; Fri, 14 May 2021 11:50:39 +0200 In-Reply-To: Content-Language: en-US X-Provags-ID: V03:K1:Hf6g2bLbk6WNQAZ7ithpwTN0hvNQOtrDG4IjJmnlFY574wOOZPE AAUTyfHfyzoxR/c5pBZcKRKdKyDkG37Qw895FWwL1JhQgm7ZW5aKDvirNb+FbhjwHuiKoaZ AfDZiJzxIfHOa9m3Q777XfeondqYtjM+zWRCjvwm/rrbfKF8aSJNyo8oObmysv0WB9VPU3w UQzETIyRaHwVNsGxD+Sqw== X-UI-Out-Filterresults: notjunk:1;V03:K0:Ty8PeYM56yw=:y2JTViE/DzFVMUlSn4ZqfI MH38CDcE83pNtRm/IWfvyd0wKZYrxwk5pHAISsBsID3Aq1HneDA6bVBW+20a+JR1Qv1GAGIul 3QknywRObHpjojVuIUU5FX4v5SG3/sM//tMIEN2+aNBkvF0pKNiMYLRSrH33QkfVUUvJzzLDw LzMtqlBtpjDz/VECMgTjJjI9jGntMDSiMv7XvYQgb9uSmwfRah9FnznKmGJRsuvv7/JSlPvTT +EwItrZEnKKvz2mx1ejojgNsY2QN8yo98J6y8Sz9ztJJHSOqYs3ryyR43DdWyaBBQV3+JMZQb Y4z6endB99bROrtsI2Q3sEt/3/LKuiPlY7F5zwDvkR+lCHo42Ulsot37oPXqnXKKWeuypNN6O Hp6RyrecB7+VouP9tkw0NeHfykYwQiDj97FgmmnJBiCZ9xCCRRIvUpvuACnioDw9147lpWPgg HGjHykDEktq93CsvTKWSDf3G1pVJGNO9ZAIVJCGVQfzMdiOA5mR4vzUlIhuJtsphpVTWFWxn5 MnGuPoU+H0FsJUPzIYWgfG6frKoU9rVjeqxYuRViV0T3abBfUMYaQg9nG507pMaW/6zK5ht0z qxHUx+Si8Jpr1+7hd+jWjLmuxg68VLvS6d8ZwBIAz4vFXX/mF+rFfCH85Z8N540XdlIWLDjPh 0F7NLu+XX1v6xuDt8+gdpIIVQk/wQRDiJhmQgnSCXLR+/Z9aG29anVrnXkOCb82MJtfdLfV7a bbyDT3mQwMaEer72KijZ+PbjyLuPTOqgB4p2RufRHBf8IgJ9Cv8h7fyByzOrWYlxsbeOjWJX Received-SPF: pass client-ip=212.227.15.15; envelope-from=rudalics@gmx.at; helo=mout.gmx.net X-Spam_score_int: -18 X-Spam_score: -1.9 X-Spam_bar: - X-Spam_report: (-1.9 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, FREEMAIL_FROM=0.001, RCVD_IN_DNSWL_NONE=-0.0001, RCVD_IN_MSPIKE_H2=-0.001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action 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:206505 Archived-At: Thanks for the forensics. They clarify things with Bug#48268. > Specifically the commenting of SET_FRAME_VISIBLE(f, 1) causes the problem (if I uncomment that line, buffer redisplay starts to work correctly). > > Trying the same with XFCE doesn't give the error. I compared the sequences of X events received under different WMs, here's the lists (without "other", "MotionNotify" and key events, for brevity): > > Xmonad: > 1. When switching to different workspace: > - FocusOut x3 > - UnmapNotify x1 > - LeaveNotify x2 > - PropertyNotify x2 > 2. When switching back: > - MapNotify x1 Can you tell me why we do not SET_FRAME_VISIBLE when receiving the MapNotify event here? Probably because we are not yet visible - though mapped but invisible is a queer state. > - VisibilityNotify x3 Maybe we should process VisibilityNotify events. > - Expose x4 Relying on these for setting visibility will fail for anyone who doesn't send us an Expose event. > - EnterNotify x2 > - FocusIn x2 > - ClientMessage x1 > - PropertyNotify x1 > - FocusIn x1 > > XFCE: > 1. When switching to different workspace: > - FocusOut x2 > - FocusIn x1 > - FocusOut x2 > - LeaveNotify x2 > - UnmapNotify x1 > - PropertyNotify x3 > 2. When switching back: > - VisibilityNotify x3 > - Expose x4 > - EnterNotify x2 > - PropertyNotify x2 > - FocusIn x2 > - ClientMessage x1 > - PropertyNotify x2 > - FocusOut x2 > - FocusIn x1 > - FocusOut x2 > - FocusIn x2 So here we don't get a MapNotify anyway when switching back and using VisibilityNotify should be TRT. martin