all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: storm@cua.dk (Kim F. Storm)
Cc: "Jan D." <jan.h.d@swipnet.se>, emacs-devel@gnu.org
Subject: Re: Simplification to mouse-avoidance-mode (patch) + redisplay bug?
Date: Wed, 10 May 2006 16:01:21 +0200	[thread overview]
Message-ID: <m34pzym11q.fsf@kfs-l.imdomain.dk> (raw)
In-Reply-To: <E1Fb2Yg-0000nK-UR@fencepost.gnu.org> (Richard Stallman's message of "Tue, 02 May 2006 17:37:26 -0400")

Richard Stallman <rms@gnu.org> writes:

> If you think your patch is correct, would you please install it?
>
>     I notice that the final cursor shape often gets it wrong if I set the
>     style to "cat-and-mouse", it seems to happen if the cursor passes over
>     an area (eg. void or a mode line) along the chosen path.  That looks
>     like a redisplay bug.
>
> You're the expert on redisplay--could you debug it (and ack)?

I've debugged this far -- and need an X-pert (Jan?) to take over:


mouse-avoidance-mode 'animate uses set-mouse-position to move
the mouse cursor in ~10 steps to reach its end position.

If I type very slowly, approaching the window cursor to the mouse
cursor -- and don't type anything while the mouse cursor is moving,
everything works, i.e. the mouse cursor shape at the final destination
is ok.

If I type more quickly, the mouse cursor still moves in steps, but
it may end up with any of the cursor shapes it had along the path.

I put some trace output into xterm.c, and it seems that (in the first
case) for each call to x_set_mouse_position (which calls
XWarpPointer), the event loop receives a MotionNotify event
(event.type = 6) with the new mouse cursor position.

.. unless I hit a key while the mouse is moving (the second case).

As soon as emacs gets the key event (event.type = 2), no further
MotionNotify events are delivered for the remaining mouse positions
along the path.

This looks like an X bug.  This is the Xfree server from redhat 9.0.

A work-around could be to unconditionally call "note_mouse_movement"
in x_set_mouse_position ?



In GNU Emacs 22.0.50.8 (i686-pc-linux-gnu, X toolkit, Xaw3d scroll bars)
 of 2006-05-09 on kfs-l.imdomain.dk
X server distributor `The XFree86 Project, Inc', version 11.0.40300000
configured using `configure  'CFLAGS=-O0 -g''

-- 
Kim F. Storm <storm@cua.dk> http://www.cua.dk

  reply	other threads:[~2006-05-10 14:01 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2006-05-02 12:23 Simplification to mouse-avoidance-mode (patch) + redisplay bug? Kim F. Storm
2006-05-02 21:37 ` Richard Stallman
2006-05-10 14:01   ` Kim F. Storm [this message]
2006-05-11  3:46     ` Richard Stallman
2006-05-11  7:50     ` Jan Djärv
2006-05-11 10:03       ` Kim F. Storm
2006-05-12  7:07         ` Jan Djärv
2006-05-14  0:12           ` Kim F. Storm

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=m34pzym11q.fsf@kfs-l.imdomain.dk \
    --to=storm@cua.dk \
    --cc=emacs-devel@gnu.org \
    --cc=jan.h.d@swipnet.se \
    /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.