[1/2] winex11: select StructureNotifyMask input on all windows (try 2)

Vincent Povirk vincent at codeweavers.com
Thu Jan 8 14:41:50 CST 2009


We have a MapNotify handler in Wine so that we can focus a
newly-mapped unmanaged window when, internally, we already consider it
focused. However, we do not select for StructureNotifyMask input on
unmanaged windows so we never get MapNotify events on them. This patch
corrects that.

With the patch applied, I can start notepad in unmanaged mode and
immediately type into the window.

Changed since last time:

StructureNotify brings in several other event types. The ones we handle are ConfigureNotify and DestroyNotify.

I'm ignoring ConfigureNotify events for unmanaged windows. Unmanaged windows do not have the appropriate window management attributes so our ConfigureNotify handler would cause problems with maximization.

I think DestroyNotify is OK; our windows should never be destroyed unless we do it, in which case we already ignore the resulting event.
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: 0001-winex11-select-StructureNotifyMask-input-on-all-win.txt
Url: http://www.winehq.org/pipermail/wine-patches/attachments/20090108/a66039fe/attachment.txt 


More information about the wine-patches mailing list