On 06/23/2009 11:26 PM, Oleg Sukhodolsky wrote:
src/solaris/classes/sun/awt/X11/XWindow.java

why we need SubstructureNotifyMask?  I see that because of it event
processing becomes a little bit more
error prone, so it would be better to understand why we need this.
Well, as the comment above the XWindow.handleReparentNotifyEvent() states,
this is needed to guarantee receiving the ReparentNotify events just after
mapping the window. Currently commenting out the SubstructureNotifyMask
seems to not make things generally worse, and I don't actually remember how
exactly I reproduced the issue.
Guess I need to remove it because theoretically it should all work w/o this
event mask. I'm just a bit scared to re-run all the tests after that change
though...

I understand you pain, but ... we need to be sure that we need (or do
not need) this mask.

So I rerun the majority of automatic top-level windows-related tests, they seem to work w/o problems. I'll remove the mask in the XWindow, however I will leave unchanged the checks for the window ID in the event handlers since the SubstructureNotifyMask may be set in other places - notably, even the XBaseWindow sets it under some circumstances. In any case, they do not harm.

--
best regards,
Anthony

Reply via email to