[Mono-winforms-list] [PATCH] Avoid sending MouseEnter messages when clicking

Ivan N. Zlatev contact at i-nz.net
Mon Aug 11 17:47:18 EDT 2008

On Mon, Aug 11, 2008 at 3:14 PM, Carlos Alberto Cortez
<calberto.cortez at gmail.com> wrote:
> Hey Ivanz,
> The attached patch reverts a check in XplatUIX11.GetMessage method,
> specifically handling the X11 EnterNotify message generated when
> clicking a control (rev 101225).
> Basically when a control is clicked, EnterNotify events are generated
> for the container form and the control being clicked. Usually when we
> get this event we generate a WM_MOUSE_ENTER message, but in this case we
> don't need it, since it's not real pointer motion.
> That's why, when the EnterNotify event tell us that it's a not a real
> motion event, we have to ignore it, no matter the value of the
> window/hwnd (right now, when clicking any control, MouseEnter/MouseMove
> events are generated for the containing form, which is obviously wrong).
> Hopefully that was clear ;-D

I can't look into more detail into that this week and unfortunately I
don't remember of the top of my head what the bug involved. However,
have you verified that the patch doesn't regress Gert's test case (not
the original reporter's one) in bug 323234 (which rev 101225 was
supposed to fix)?

Kind Regards,
Ivan N. Zlatev

More information about the Mono-winforms-list mailing list