From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.bugs Subject: bug#42406: Mouse-wheel scrolling can be flickering Date: Thu, 17 Dec 2020 18:54:11 +0200 Message-ID: <83pn3874r0.fsf@gnu.org> References: <83sg89cyrq.fsf@gnu.org> <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> Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="35945"; mail-complaints-to="usenet@ciao.gmane.io" Cc: alan@idiocy.org, konrad.podczeck@univie.ac.at, 42406@debbugs.gnu.org To: martin rudalics Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Thu Dec 17 17:55:09 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 1kpwYW-0009Ev-Pw for geb-bug-gnu-emacs@m.gmane-mx.org; Thu, 17 Dec 2020 17:55:08 +0100 Original-Received: from localhost ([::1]:43678 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1kpwYV-0002IH-Q8 for geb-bug-gnu-emacs@m.gmane-mx.org; Thu, 17 Dec 2020 11:55:07 -0500 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:33664) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1kpwYQ-0002I7-4X for bug-gnu-emacs@gnu.org; Thu, 17 Dec 2020 11:55:02 -0500 Original-Received: from debbugs.gnu.org ([209.51.188.43]:53519) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1kpwYP-0002lA-T3 for bug-gnu-emacs@gnu.org; Thu, 17 Dec 2020 11:55:01 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1kpwYP-0007rA-Pw for bug-gnu-emacs@gnu.org; Thu, 17 Dec 2020 11:55:01 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Eli Zaretskii Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Thu, 17 Dec 2020 16:55:01 +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.160822406230149 (code B ref 42406); Thu, 17 Dec 2020 16:55:01 +0000 Original-Received: (at 42406) by debbugs.gnu.org; 17 Dec 2020 16:54:22 +0000 Original-Received: from localhost ([127.0.0.1]:36832 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1kpwXm-0007qD-5H for submit@debbugs.gnu.org; Thu, 17 Dec 2020 11:54:22 -0500 Original-Received: from eggs.gnu.org ([209.51.188.92]:40358) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1kpwXk-0007q0-G3 for 42406@debbugs.gnu.org; Thu, 17 Dec 2020 11:54:20 -0500 Original-Received: from fencepost.gnu.org ([2001:470:142:3::e]:55541) by eggs.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1kpwXd-0002hA-Fb; Thu, 17 Dec 2020 11:54:13 -0500 Original-Received: from [176.228.60.248] (port=1086 helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_256_CBC_SHA1:256) (Exim 4.82) (envelope-from ) id 1kpwXc-0007Li-Tl; Thu, 17 Dec 2020 11:54:13 -0500 In-Reply-To: <31e56bf1-203f-f895-20cd-32bab5e05988@gmx.at> (message from martin rudalics on Thu, 17 Dec 2020 16:13:53 +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:196265 Archived-At: > Cc: konrad.podczeck@univie.ac.at, alan@idiocy.org, 42406@debbugs.gnu.org > From: martin rudalics > Date: Thu, 17 Dec 2020 16:13:53 +0100 > > > That won't work without also changing redisplay_internal to consider > > such a list. It currently knows about just 2 alternatives: either > > consider only the selected window on the selected frame, or all > > windows on all frames -- and only the second option considers > > non-window aspects (such as the frame title or menu bar) of the > > selected frame. > > 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. > 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. 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.