From: YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
To: Stefan Monnier <monnier@iro.umontreal.ca>
Cc: "Miles Bader" <miles@gnu.org>, grischka <grishka@gmx.de>,
"Jan Djärv" <jan.h.d@swipnet.se>,
joakim@verona.se, emacs-devel@gnu.org
Subject: Re: Scrollbar thumbs
Date: Thu, 05 Nov 2009 10:18:07 +0900 [thread overview]
Message-ID: <wly6mlzs4w.wl%mituharu@math.s.chiba-u.ac.jp> (raw)
In-Reply-To: <jwvr5se3tk2.fsf-monnier+emacs@gnu.org>
>>>>> On Wed, 04 Nov 2009 15:57:06 -0500, Stefan Monnier <monnier@iro.umontreal.ca> said:
> In any case, given how widespread the problem is, it's clear that we
> can't expect the toolkit to adapt to Emacs. And since nobody has
> found a way yet to make Emacs DTRT, all we can do is provide various
> workarounds, which is what we've done until now.
The Carbon port and its descendants don't let the toolkit scrollbar
process the mouse events: we can't do that (without nontrivial changes
for multithreading of the GUI part) in the first place because the
toolkit scrollbar on Mac processes them in its own modal loop (i.e.,
we can't go back to the Lisp event loop during the mouse tracking, and
that is not compatible with the current scrollbar handling in Emacs.).
What the Carbon port (and its descendants) does is to process the
whole mouse events at the Emacs side. It includes timer processing
for repeated scrolling (e.g, pressing an arrow button for a while.)
The toolkit is used only for displaying the scrollbar with
highlighting, detecting which part of the bar is pressed, and getting
the rectangle for a specified part of the bar.
The result is like a sort of mixture of native and toolkit scrollbars
on X11: it generates Lisp events and looks like the toolkit one, but
the size of the thumb usually changes during dragging and also
overscrolling at the bottom works as in the native one.
YAMAMOTO Mitsuharu
mituharu@math.s.chiba-u.ac.jp
next prev parent reply other threads:[~2009-11-05 1:18 UTC|newest]
Thread overview: 41+ messages / expand[flat|nested] mbox.gz Atom feed top
2009-11-02 10:41 Scrollbar thumbs (was: Customizing the mode line) grischka
2009-11-02 11:21 ` Scrollbar thumbs Miles Bader
2009-11-03 0:48 ` grischka
2009-11-03 9:27 ` David Kastrup
2009-11-04 0:09 ` Miles Bader
2009-11-04 9:51 ` grischka
2009-11-04 11:18 ` joakim
2009-11-04 19:29 ` Jan Djärv
2009-11-04 20:57 ` Stefan Monnier
2009-11-05 1:18 ` YAMAMOTO Mitsuharu [this message]
2009-11-09 23:14 ` YAMAMOTO Mitsuharu
2009-11-05 9:23 ` Jan D.
2009-11-05 13:59 ` Stefan Monnier
2009-11-05 15:16 ` grischka
2009-11-05 15:32 ` Lennart Borgman
2009-11-05 15:35 ` Óscar Fuentes
2009-11-05 16:07 ` David Kastrup
2009-11-05 23:55 ` Jason Rumney
2009-11-06 0:31 ` Miles Bader
2009-11-06 3:10 ` Stephen J. Turnbull
2009-11-06 4:37 ` Miles Bader
2009-11-06 8:42 ` David Kastrup
2009-11-06 8:55 ` Eli Zaretskii
2009-11-02 14:15 ` Stefan Monnier
2009-11-03 0:32 ` grischka
2009-11-03 1:18 ` Stefan Monnier
2009-11-03 5:37 ` grischka
2009-11-03 13:38 ` Stefan Monnier
2009-11-03 21:10 ` grischka
2009-11-03 23:00 ` Stefan Monnier
2009-11-03 10:02 ` joakim
2009-11-05 9:21 ` Jan D.
-- strict thread matches above, loose matches on Subject: below --
2009-11-07 11:50 grischka
2009-11-07 16:38 ` Óscar Fuentes
2009-11-07 17:47 ` David De La Harpe Golden
2009-11-03 16:36 grischka
2009-11-03 17:13 ` David Kastrup
2009-10-30 11:18 Customizing the mode line Eli Zaretskii
2009-10-30 13:38 ` Stefan Monnier
2009-10-31 6:09 ` Manoj Srivastava
2009-10-31 20:38 ` Scrollbar thumbs (was: Customizing the mode line) Stefan Monnier
2009-11-01 3:11 ` Scrollbar thumbs Miles Bader
2009-11-02 6:55 ` Stefan Monnier
2009-11-02 7:41 ` Jason Rumney
2009-11-02 14:10 ` Stefan Monnier
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=wly6mlzs4w.wl%mituharu@math.s.chiba-u.ac.jp \
--to=mituharu@math.s.chiba-u.ac.jp \
--cc=emacs-devel@gnu.org \
--cc=grishka@gmx.de \
--cc=jan.h.d@swipnet.se \
--cc=joakim@verona.se \
--cc=miles@gnu.org \
--cc=monnier@iro.umontreal.ca \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this external index
https://git.savannah.gnu.org/cgit/emacs.git
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.