From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.bugs Subject: bug#32002: 24.4; Scroll bar start, end not correct Date: Fri, 06 Jul 2018 16:31:05 +0300 Message-ID: <83fu0wlcdi.fsf@gnu.org> References: <3977.1530849518@alto> <83d0w0nbcc.fsf@gnu.org> <87d0w0ac4b.fsf@gmail.com> <5B3F66EA.5040203@gmx.at> NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Trace: blaine.gmane.org 1530883924 32626 195.159.176.226 (6 Jul 2018 13:32:04 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Fri, 6 Jul 2018 13:32:04 +0000 (UTC) Cc: rpluim@gmail.com, mkupfer@alum.berkeley.edu, 32002@debbugs.gnu.org, npostavs@gmail.com, kurn@sfu.ca To: martin rudalics Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Fri Jul 06 15:31:59 2018 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by blaine.gmane.org with esmtp (Exim 4.84_2) (envelope-from ) id 1fbQq6-0008L2-7W for geb-bug-gnu-emacs@m.gmane.org; Fri, 06 Jul 2018 15:31:58 +0200 Original-Received: from localhost ([::1]:58099 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1fbQsD-000391-AY for geb-bug-gnu-emacs@m.gmane.org; Fri, 06 Jul 2018 09:34:09 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:35124) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1fbQqE-00024M-EL for bug-gnu-emacs@gnu.org; Fri, 06 Jul 2018 09:32:07 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1fbQqA-0005Bs-He for bug-gnu-emacs@gnu.org; Fri, 06 Jul 2018 09:32:06 -0400 Original-Received: from debbugs.gnu.org ([208.118.235.43]:40434) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1fbQqA-0005Bf-DU for bug-gnu-emacs@gnu.org; Fri, 06 Jul 2018 09:32:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1fbQqA-0007eK-4R for bug-gnu-emacs@gnu.org; Fri, 06 Jul 2018 09:32:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Eli Zaretskii Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Fri, 06 Jul 2018 13:32:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 32002 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: fixed Original-Received: via spool by 32002-submit@debbugs.gnu.org id=B32002.153088388529355 (code B ref 32002); Fri, 06 Jul 2018 13:32:02 +0000 Original-Received: (at 32002) by debbugs.gnu.org; 6 Jul 2018 13:31:25 +0000 Original-Received: from localhost ([127.0.0.1]:48331 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1fbQpZ-0007dP-Hq for submit@debbugs.gnu.org; Fri, 06 Jul 2018 09:31:25 -0400 Original-Received: from eggs.gnu.org ([208.118.235.92]:44011) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1fbQpW-0007d7-Vh for 32002@debbugs.gnu.org; Fri, 06 Jul 2018 09:31:23 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1fbQpM-0004zI-B0 for 32002@debbugs.gnu.org; Fri, 06 Jul 2018 09:31:17 -0400 Original-Received: from fencepost.gnu.org ([2001:4830:134:3::e]:59537) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1fbQpF-0004wG-Fi; Fri, 06 Jul 2018 09:31:05 -0400 Original-Received: from [176.228.60.248] (port=3287 helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_256_CBC_SHA1:256) (Exim 4.82) (envelope-from ) id 1fbQpF-0002KG-1B; Fri, 06 Jul 2018 09:31:05 -0400 In-reply-to: <5B3F66EA.5040203@gmx.at> (message from martin rudalics on Fri, 06 Jul 2018 14:56:10 +0200) X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 208.118.235.43 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.org@gnu.org Original-Sender: "bug-gnu-emacs" Xref: news.gmane.org gmane.emacs.bugs:148258 Archived-At: > Date: Fri, 06 Jul 2018 14:56:10 +0200 > From: martin rudalics > CC: Mike Kupfer , 32002@debbugs.gnu.org, > kurn@sfu.ca, npostavs@gmail.com > > >>> gdb says that Emacs is getting jump events, not step events. > >>> > >>> Thread 1 "emacs" hit Breakpoint 1, xg_scroll_callback (range=0x2f58740, > >>> scroll=GTK_SCROLL_JUMP, value=5637316.2000000002, > >>> user_data=0x1493c30 ) at xterm.c:5644 > >> > >> Thanks. I guess the issue now moves to GTK-land: why do we get jump > >> events when you click on the steppers? Maybe someone who knows GTK > >> can answer that. > > > > It looks like GTK sends GTK_SCROLL_JUMP everytime the position of the > > scrollbar thumb is changed, regardless of how you change it. I think > > it can *also* send events when you click the stepper, but I suspect > > you then get two events, with no easy way to distinguish them. Iʼd > > test, but my theme doesnʼt have steppers. > > Here I'm called back with exactly one GTK_SCROLL_STEP notification as > > #0 xg_scroll_callback (range=0x183a3b0, scroll=GTK_SCROLL_STEP_FORWARD, value=244073, user_data=0x15410a0) at ../../src/xterm.c:5673 So maybe the GTK version is a factor here?