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 16:04:50 +0200 Message-ID: <8336048r5p.fsf@gnu.org> References: <83czzg3ge1.fsf@gnu.org> <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> Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="16325"; 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 15:07:49 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 1kptwa-0004A5-CF for geb-bug-gnu-emacs@m.gmane-mx.org; Thu, 17 Dec 2020 15:07:48 +0100 Original-Received: from localhost ([::1]:32982 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1kptwZ-0005tr-Dq for geb-bug-gnu-emacs@m.gmane-mx.org; Thu, 17 Dec 2020 09:07:47 -0500 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:51548) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1kptus-0004qT-SG for bug-gnu-emacs@gnu.org; Thu, 17 Dec 2020 09:06:03 -0500 Original-Received: from debbugs.gnu.org ([209.51.188.43]:51802) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1kptus-00060z-KR for bug-gnu-emacs@gnu.org; Thu, 17 Dec 2020 09:06:02 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1kptus-00039L-Ec for bug-gnu-emacs@gnu.org; Thu, 17 Dec 2020 09:06:02 -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 14:06: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.160821390412034 (code B ref 42406); Thu, 17 Dec 2020 14:06:02 +0000 Original-Received: (at 42406) by debbugs.gnu.org; 17 Dec 2020 14:05:04 +0000 Original-Received: from localhost ([127.0.0.1]:35114 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1kpttw-000380-0g for submit@debbugs.gnu.org; Thu, 17 Dec 2020 09:05:04 -0500 Original-Received: from eggs.gnu.org ([209.51.188.92]:58184) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1kpttt-00037Q-On for 42406@debbugs.gnu.org; Thu, 17 Dec 2020 09:05:02 -0500 Original-Received: from fencepost.gnu.org ([2001:470:142:3::e]:52243) by eggs.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1kpttl-0005bG-DS; Thu, 17 Dec 2020 09:04:53 -0500 Original-Received: from [176.228.60.248] (port=2305 helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_256_CBC_SHA1:256) (Exim 4.82) (envelope-from ) id 1kpttj-0004wv-SI; Thu, 17 Dec 2020 09:04:52 -0500 In-Reply-To: <1a3b1fd6-e438-0c77-d317-576e707930a0@gmx.at> (message from martin rudalics on Thu, 17 Dec 2020 08:29:48 +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:196254 Archived-At: > Cc: Eli Zaretskii , Alan Third , > 42406@debbugs.gnu.org > From: martin rudalics > Date: Thu, 17 Dec 2020 08:29:48 +0100 > > > To clarify my observation: If I comment out just the two calls to > > wset_update_mode_line that are in window_scroll_pixel_based, then the > > mouse wheel scrolling problem with multiple frames goes away, but the > > problem with scrolling via the scroll bars remains; if I comment out > > all five calls to wset_update_mode which are in window.c, then in > > addition the scroll-bar problem goes away (with multiple frames). I > > just wanted to know whether Martin has an idea which of the remaining > > three calls (when they are not out-commented) could be responsible for > > the scroll-bar problem. > > I suppose it happens via 'scroll-bar-toolkit-scroll' calling > 'scroll-bar-drag-1' calling 'set-window-start' so commenting out the > > wset_update_mode_line (w); > /* Bug#15957. */ > > occurrence in Fset_window_start should cut it. set-window-start is how Lisp programs tell the display engine to scroll the display. So if we agree that scrolling should trigger update of the frame's elements other than the selected window, then these calls to wset_update_mode_line are necessary and cannot be removed. As I said previously, patches are welcome to make the decision of what exactly needs to be redrawn more fine-grained than the current "either just the selected window or all the windows on all the frames" method.