From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Stefan Monnier Newsgroups: gmane.emacs.bugs Subject: bug#42406: Mouse-wheel scrolling can be flickering Date: Thu, 17 Dec 2020 18:29:56 -0500 Message-ID: References: <20200722201659.GA1541@breton.holly.idiocy.org> <969D8DEC-6837-4DD4-93E9-F359DADE1EAB@univie.ac.at> <20201010095100.GG60347@breton.holly.idiocy.org> <9849711D-8DBE-4030-8020-84D86E72505B@univie.ac.at> <83czzg3ge1.fsf@gnu.org> <83sg89cyrq.fsf@gnu.org> <837dpkcqpa.fsf@gnu.org> <32769197-17d3-564f-a917-c5e898f159b6@gmx.at> Mime-Version: 1.0 Content-Type: text/plain Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="11438"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/28.0.50 (gnu/linux) Cc: konrad.podczeck@univie.ac.at, Alan Third , 42406@debbugs.gnu.org To: martin rudalics Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Fri Dec 18 00:31:25 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 1kq2k1-0002sk-Am for geb-bug-gnu-emacs@m.gmane-mx.org; Fri, 18 Dec 2020 00:31:25 +0100 Original-Received: from localhost ([::1]:54356 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1kq2k0-0006Ty-BD for geb-bug-gnu-emacs@m.gmane-mx.org; Thu, 17 Dec 2020 18:31:24 -0500 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:38362) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1kq2je-0006Te-Co for bug-gnu-emacs@gnu.org; Thu, 17 Dec 2020 18:31:02 -0500 Original-Received: from debbugs.gnu.org ([209.51.188.43]:54011) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1kq2je-0002Y3-50 for bug-gnu-emacs@gnu.org; Thu, 17 Dec 2020 18:31:02 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1kq2je-0002tY-0c for bug-gnu-emacs@gnu.org; Thu, 17 Dec 2020 18:31:02 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Stefan Monnier Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Thu, 17 Dec 2020 23:31: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.160824780610969 (code B ref 42406); Thu, 17 Dec 2020 23:31:01 +0000 Original-Received: (at 42406) by debbugs.gnu.org; 17 Dec 2020 23:30:06 +0000 Original-Received: from localhost ([127.0.0.1]:37324 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1kq2ik-0002qr-AX for submit@debbugs.gnu.org; Thu, 17 Dec 2020 18:30:06 -0500 Original-Received: from mailscanner.iro.umontreal.ca ([132.204.25.50]:25218) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1kq2ii-0002pm-0C for 42406@debbugs.gnu.org; Thu, 17 Dec 2020 18:30:04 -0500 Original-Received: from pmg2.iro.umontreal.ca (localhost.localdomain [127.0.0.1]) by pmg2.iro.umontreal.ca (Proxmox) with ESMTP id 897C8809A7; Thu, 17 Dec 2020 18:29:58 -0500 (EST) Original-Received: from mail01.iro.umontreal.ca (unknown [172.31.2.1]) by pmg2.iro.umontreal.ca (Proxmox) with ESMTP id 16FB1805BE; Thu, 17 Dec 2020 18:29:57 -0500 (EST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=iro.umontreal.ca; s=mail; t=1608247797; bh=wtMItQQzdij3rYlvZ0hev1qgs95aHwBG0KTWqy7Hxrk=; h=From:To:Cc:Subject:References:Date:In-Reply-To:From; b=UEAT0DJ5AhZ2JwHzdn4uuFbC3jq0razrddjQIARFyRUF8g31ml9+pcvNGC2Kn8OoH ko4zTrzTIEjoAU0bUMbQBFlKAk9cWWX5IAZAd8xWHBVqoEd31MsK0lt0kns3e4p7Ot otlYAIBqE+QRrjRMw60UJLJZsE9YAV8X+ApKPC/wFX9sEM9gs006SwPl8BFutWqSH3 RkmAwYex7Cit6c0LigkqHQTvJ3+7quMtUM9/9NzNwE+CDVgYDjyMDAtFnk6J2Nl48r uVwPhOzFfROgJ2Nz6Vw5YIVykcsbqPBfh1Mxt0/LYHMVNFFoViduw+LGdmJmnM7jKb ea4Wc11PHRwlw== Original-Received: from alfajor (69-165-136-52.dsl.teksavvy.com [69.165.136.52]) by mail01.iro.umontreal.ca (Postfix) with ESMTPSA id C704C120337; Thu, 17 Dec 2020 18:29:56 -0500 (EST) In-Reply-To: <32769197-17d3-564f-a917-c5e898f159b6@gmx.at> (martin rudalics's message of "Fri, 18 Dec 2020 00:19:29 +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:196299 Archived-At: >> if (WINDOWP (fselected_window) && XWINDOW (fselected_window) == w) >> - update_mode_lines = 42; >> + { >> + update_mode_lines = 2; >> + XFRAME (WINDOW_FRAME (w))->redisplay = true; >> + } >> else >> w->update_mode_line = true; > > Why penalize people with >= 2 windows per selected frame when scrolling > one of them by updating all the others' mode, header, tab lines? BTW, I don't quite understand this question, tho: my patch definitely doesn't make things work any worse than they do now: currently, all the mode-lines (and relatives) are updated on all windows on all frames. My patch reduces this so it's only done on the selected frame (but still all windows of that one frame, indeed :-( ). Stefan