Re: motion notify question
- From: Havoc Pennington <hp redhat com>
- To: <pavel klebanov ne mediaone net>
- Cc: gtk-app-devel-list gnome org
- Subject: Re: motion notify question
- Date: 29 Dec 2000 18:12:15 -0500
<pavel klebanov ne mediaone net> writes:
If my widget captures motion_notify and the mouse button is pressed and
the button moves out of the widget, motion_notify keeps firing. Why and is
there a way to disable it?
Of course I could easily test whether the mouse is inside the widget, but
still....
X automatically grabs the pointer while a mouse button is pressed, so
during a press gdk_pointer_grab() has effectively been called.
Among other things, this ensures that you always get a button release
event paired with your press event, which simplifies a lot of code.
So this may complicate your life now, but in other cases it won't. ;-)
Havoc
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]