From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: martin rudalics Newsgroups: gmane.emacs.bugs Subject: bug#32002: 24.4; Scroll bar start, end not correct Date: Fri, 06 Jul 2018 14:56:10 +0200 Message-ID: <5B3F66EA.5040203@gmx.at> References: <3977.1530849518@alto> <83d0w0nbcc.fsf@gnu.org> <87d0w0ac4b.fsf@gmail.com> NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: quoted-printable X-Trace: blaine.gmane.org 1530881906 6654 195.159.176.226 (6 Jul 2018 12:58:26 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Fri, 6 Jul 2018 12:58:26 +0000 (UTC) Cc: Mike Kupfer , 32002@debbugs.gnu.org, npostavs@gmail.com, kurn@sfu.ca To: Robert Pluim , Eli Zaretskii Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Fri Jul 06 14:58:21 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 1fbQJZ-0001Z1-0L for geb-bug-gnu-emacs@m.gmane.org; Fri, 06 Jul 2018 14:58:21 +0200 Original-Received: from localhost ([::1]:57877 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1fbQLg-0001Pl-3m for geb-bug-gnu-emacs@m.gmane.org; Fri, 06 Jul 2018 09:00:32 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:52921) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1fbQIL-0007JL-Mo for bug-gnu-emacs@gnu.org; Fri, 06 Jul 2018 08:57:06 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1fbQII-0006u9-GZ for bug-gnu-emacs@gnu.org; Fri, 06 Jul 2018 08:57:05 -0400 Original-Received: from debbugs.gnu.org ([208.118.235.43]:40408) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1fbQII-0006tz-Dj for bug-gnu-emacs@gnu.org; Fri, 06 Jul 2018 08:57:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1fbQII-0006k7-1p for bug-gnu-emacs@gnu.org; Fri, 06 Jul 2018 08:57:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: martin rudalics Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Fri, 06 Jul 2018 12:57: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.153088178725871 (code B ref 32002); Fri, 06 Jul 2018 12:57:02 +0000 Original-Received: (at 32002) by debbugs.gnu.org; 6 Jul 2018 12:56:27 +0000 Original-Received: from localhost ([127.0.0.1]:48305 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1fbQHj-0006jD-2w for submit@debbugs.gnu.org; Fri, 06 Jul 2018 08:56:27 -0400 Original-Received: from mout.gmx.net ([212.227.17.21]:51667) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1fbQHi-0006iz-5O for 32002@debbugs.gnu.org; Fri, 06 Jul 2018 08:56:26 -0400 Original-Received: from [192.168.1.100] ([46.125.250.112]) by mail.gmx.com (mrgmx101 [212.227.17.168]) with ESMTPSA (Nemesis) id 0MAloF-1fPZVG3rA3-00BrUY; Fri, 06 Jul 2018 14:56:14 +0200 In-Reply-To: <87d0w0ac4b.fsf@gmail.com> X-Provags-ID: V03:K1:jgZYYHCdclWTltsFJYlVzs7TC2MdQfkYZpQbnavjtYNNZ54dEns MnjX7gX0qQiJ/iGe2PDPCGjopIvwmo8u/AAvayCIt2Y38U01MY01Zai0f3ABOscG4U/0Whk SoC86QR8QbayegEfXIfhmRyUM5lHwGFEbSYtkI3m4MejCwp7XTPrGv7ZYNSgT8K+8b3SHJu eHTp7dv5quhwXJtbxVP6Q== X-UI-Out-Filterresults: notjunk:1;V01:K0:uIIHf0U+Olk=:fsamycUCYgcNF/n3nppOIE J0HKK7MPpt8+n2i5xCqkwEKF63ca9X7A7AAOhL4TGfkEkUM2q9ZzHiU9zhzOKoEe7a0PZFP2A C2aSEsMb+NAtwYxVO9d3R0kroudUm1YLxd8KvT9h7kNWTWXEWqK9IF54oyR/2C6Gh3OSnow/O G7PIa7V+aOlwQGOtSoxPa4Tr/nOY7n1pfLMzI84TYnctmlB3cWgCkTQLShnQvet6BoH/vPI42 Lp7Hx9meVk3IK6AUlcUdoptV6DUEh5P4kIHiUTns5OqnSktFru9fqcwGw/nBaoUlYgw9jTwAf Ybe6fT5FpX9L+yT5/hRIsRDqRz3wZ567ascIez4itugGrxJWhqyiO2ysGWq73P/3HA0u77rwj 5a+th/84vKPBqkXU+AJb4GCbmjawfX70wlqF8S0XLAbT8USrwzLfD2djREBpswMa0c2yH+Mcg XyMxTli/CPxRzgUCdzIyf+w5eZRD32LPCmMjNhGKdwYLXN+IVRQcajzVlJYR3kBPAmR5KsPgw LwUWRdx/7la8rLMNo2k+Z88A7qKsHiR3zmakoc0IczjhMK/8T/JoHHK8A5WiJLfaZNyox8HFg EiG6bIefdkt5HUd8TNkT221K1Y7IzmX0dEyyYD5AP18JqXEAghrCw6gEBvdooJgEVKms83tRA jXMrLtJZIMFmpvuXLXJ1RQH6Ipez2wPzmrLjNKlcW76UGL19OD8oqdAQ3wFdG/Tdn5ajx+yV3 xALasQmyCRa1+Xrd2CdkeNZTVZyQ8NwAzeughOjplKOs8U17IvbwVn4SUPOOpH9521GV2sW1 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:148252 Archived-At: >>> gdb says that Emacs is getting jump events, not step events. >>> >>> Thread 1 "emacs" hit Breakpoint 1, xg_scroll_callback (range=3D0x= 2f58740, >>> scroll=3DGTK_SCROLL_JUMP, value=3D5637316.2000000002, >>> user_data=3D0x1493c30 ) at xterm.c:5= 644 >> >> 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=CA=BC= d > test, but my theme doesn=CA=BCt have steppers. Here I'm called back with exactly one GTK_SCROLL_STEP notification as #0 xg_scroll_callback (range=3D0x183a3b0, scroll=3DGTK_SCROLL_STEP_FORWA= RD, value=3D244073, user_data=3D0x15410a0) at ../../src/xterm.c:5673 Otherwise, IIUC nothing would happen since GTK_SCROLL_JUMP expects that the mouse has been grabbed in order to send a scroll_bar_event. But maybe I'm misreading the code. martin