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

Carlos Alberto Cortez calberto.cortez at gmail.com
Mon Aug 11 09:14:06 EDT 2008


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

Carlos.


-------------- next part --------------
A non-text attachment was scrubbed...
Name: xplat-enternotify.patch
Type: text/x-patch
Size: 518 bytes
Desc: not available
Url : http://lists.ximian.com/pipermail/mono-winforms-list/attachments/20080811/5fe56726/attachment.bin 


More information about the Mono-winforms-list mailing list