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#42406: Mouse-wheel scrolling can be flickering Date: Thu, 17 Dec 2020 18:34:42 +0100 Message-ID: <5014029f-852f-e52e-3f2f-5f7deeba8d67@gmx.at> References: <0FD2AAC6-BA1C-483F-9967-3E18B4ADD4D3@univie.ac.at> <0d3c9f07-7783-3e41-bf85-24a034c02e5c@gmx.at> <01B63545-A435-48C5-AB62-441EAD24F24C@univie.ac.at> <8A9929A0-1C51-4CC7-9EB1-1555788465F0@univie.ac.at> <3FA2BD5E-5EAA-496E-AA2F-83810F62082C@univie.ac.at> <5945639e-0fe1-1308-e9e7-62ef44407e89@gmx.at> <8AF2FA71-E12D-414A-9224-31DCC5528BA9@univie.ac.at> <3a8d5d16-4362-a267-acc6-3f2c845fc8ed@gmx.at> <83zh2d91wh.fsf@gnu.org> <5dfe58f9-cddd-cf7b-5061-8929de3f8995@gmx.at> <83r1np8y9o.fsf@gnu.org> <8505b808-3c5b-7864-fc10-90c8e3409e61@gmx.at> <1a3b1fd6-e438-0c77-d317-576e707930a0@gmx.at> <1950D435-7BC8-41AF-99D5-FD673455B3AE@univie.ac.at> <83tusk7aro.fsf@gnu.org> <31e56bf1-203f-f895-20cd-32bab5e05988@gmx.at> <83pn3874r0.fsf@gnu.org> 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="24989"; mail-complaints-to="usenet@ciao.gmane.io" Cc: alan@idiocy.org, konrad.podczeck@univie.ac.at, 42406@debbugs.gnu.org To: Eli Zaretskii Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Thu Dec 17 18:44:31 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 1kpxKI-0006MY-Ql for geb-bug-gnu-emacs@m.gmane-mx.org; Thu, 17 Dec 2020 18:44:30 +0100 Original-Received: from localhost ([::1]:53428 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1kpxKH-0002CB-S1 for geb-bug-gnu-emacs@m.gmane-mx.org; Thu, 17 Dec 2020 12:44:29 -0500 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:43564) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1kpxBA-0001Dd-19 for bug-gnu-emacs@gnu.org; Thu, 17 Dec 2020 12:35:04 -0500 Original-Received: from debbugs.gnu.org ([209.51.188.43]:53628) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1kpxB9-0000oN-Pt for bug-gnu-emacs@gnu.org; Thu, 17 Dec 2020 12:35:03 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1kpxB8-0000WE-Mm for bug-gnu-emacs@gnu.org; Thu, 17 Dec 2020 12:35:02 -0500 X-Loop: help-debbugs@gnu.org Resent-From: martin rudalics Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Thu, 17 Dec 2020 17:35:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 42406 X-GNU-PR-Package: emacs Original-Received: via spool by 42406-submit@debbugs.gnu.org id=B42406.16082265011975 (code B ref 42406); Thu, 17 Dec 2020 17:35:02 +0000 Original-Received: (at 42406) by debbugs.gnu.org; 17 Dec 2020 17:35:01 +0000 Original-Received: from localhost ([127.0.0.1]:36940 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1kpxB7-0000Vn-BE for submit@debbugs.gnu.org; Thu, 17 Dec 2020 12:35:01 -0500 Original-Received: from mout.gmx.net ([212.227.15.18]:47335) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1kpxB5-0000VX-BT for 42406@debbugs.gnu.org; Thu, 17 Dec 2020 12:34:59 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=gmx.net; s=badeba3b8450; t=1608226483; bh=MDExrYg3YGs/DternB/BdP0r96YZ5V162kObsUSYS94=; h=X-UI-Sender-Class:Subject:To:Cc:References:From:Date:In-Reply-To; b=Jf32LY+kCLMZbt9wb7cpe/DAyXl6J/bHS+1rFP7wzKLk0VaGWFKY+LeyXTGr4MLMc 8MNgkhHMISZycuAIT5D2cXVodJG8o7NkNDVFnEfO84M5TCJQ/bE0KfhydiEkHBu5n7 ZO8U3eOfkwL5Qozo8xsHsh/rfPel7VYnqD5V5kw8= X-UI-Sender-Class: 01bb95c1-4bf8-414a-932a-4f6e2808ef9c Original-Received: from [192.168.1.100] ([212.95.7.238]) by mail.gmx.com (mrgmx005 [212.227.17.190]) with ESMTPSA (Nemesis) id 1N6siz-1k1aCT408l-018L0G; Thu, 17 Dec 2020 18:34:43 +0100 In-Reply-To: <83pn3874r0.fsf@gnu.org> Content-Language: en-US X-Provags-ID: V03:K1:aZ4d/+k9gNxLGQbZy2K/vuIJsFnidp0yOf/v4OUfjsOAEmRqaaF MQRN8ljQ87RR8jTt7RIEiF4fhlOK9Sz1ZcishNYNj8rqm1+X7Mjs4NqckXxUp9gilsGwhpx +XL20X029SSVbf6tmYiAjF33zxgcWm+oV9L5pZ3f+diafcvA63ldKtzbR7ZLvAOQwjg3uHs V2PZ44sYvsq5z9lfo3uhg== X-UI-Out-Filterresults: notjunk:1;V03:K0:cKdOHuExj4s=:soNIv6Wk7D8JudGu8PEDIr 3zXJuq782urnVhWz13wAnqruIEHW0rsErcjGSlL6HbkzikIHOwehehZ5E+bv7jLUQ7rTnUsHY ApbQlXR897kZSR4yNeGu4iDcG4N4qinADDUjx2KKrZg4GkLRUn65Yz+Z/I0xYmAvT2i6CUKZ9 ZPrT+dd2aBGYFwCrrxEbtHKk34FmnLIRhrmLE6yGtCh5dhqh3xH//h13f6KsT2HnioOvdXBF5 /wxZHKWsdxRrI35X6EzGpaoAL1pM99raHnoZ6h/OGJ5zPrVWfaGXeAWL4CM9I6bWbViWlzB0r 1bYJBjv6vKH2j+6wkcP+/djv3K3VZ5xxAKnMdfKW3aVLXoDucVVlbdN09/Rf8zGQdhvWU3L9W BPLSXuEDMd8NXTC4FZsdl6h6TQvO9QX9EoB2Xr0gNSnNDNKJWvesy8Q3kz/aR7nuqbfrceuEd rLakbhQLt8oBeXuEzh0q21Sr9qUvsUZiWuma9rgWllkq6GD2cGNJkuJ3tv/p2+Rt/kb8RNKPX 0agsGqg4+bbPtcWgfbOOjd/sbGSbgXLK1zcz0IN3h1iPLTSMES0eNP45d9fRRTO8+12BKdR3z vTYIr6kDF/D2c0ZPbUD7TGvTinY4B0AcbxuwNNe/E226FhsenuTYS5KYpzv+LIBO4cdRIt2wh VMrCgaXDGIP/uaeKt2XspT/YtyiMFZepnsI2OOvcj071cKp2iO8nVdu1TfYKI8i6TeSkFHl7f yxqj1RV+9549MbhEgUZeD8OjWUrYVZbdaYFR0O+5v/Xvr/KLM+ME0B6CMGnVNCb7VMjQZcVk 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:196269 Archived-At: >> The part mostly affected would be >> >> if (consider_all_windows_p) >> { >> FOR_EACH_FRAME (tail, frame) >> XFRAME (frame)->updated_p = false; > > You mean, it will not affect the following FOR_EACH_FRAME loop? If > so, I don't think I follow. It would affect it in the sense that not necessarily all frames are considered. But you sketched that already in your TODO entry. >> because windows_or_buffers_changed should probably become either a list >> too or redisplay would simply scan all windows and act when it finds a >> window whose w->update_mode_line or w->changed flag is true. > > I don't think windows are the problem: Emacs knows very well which > window(s) actually need(s) to be redisplayed and redrawn. In the case at hand Emacs relies on redisplaying all frames when scrolling a window that is not on the selected frame in order to correctly reflect the change in the scrolled window's mode line. > The problem > is with frame decorations that don't belong to any window: there we > rely on the OS and the WM to refrain from redrawing stuff unless > really needed. IIUC windows_or_buffers_changed affects frames as well. For example, I have no idea why making a frame (in)visible should redisplay all other frames while moving a frame on the screen apparently does not. martin