http://bugs.winehq.org/show_bug.cgi?id=26736
--- Comment #5 from Alexandre Julliard julliard@winehq.org 2011-04-12 10:32:22 CDT --- (In reply to comment #4)
(In reply to comment #3)
You should handle WM_WINDOWPOSCHANGED. We can't send enter/exit notifications when the change is done by the window manager.
Thank you. I will look into changing this. It looks like he same also the case for WM_SIZING? Looking at http://bugs.winehq.org/show_bug.cgi?id=5941 this seems to have been the case for a long time. WIll it ever get fixed?
It's already fixed in the sense that if you resize the window through Wine, for instance in desktop mode, you get the messages. When the window manager resizes the window we don't get any notice of that fact, so there's no way we can send the messages.
There seems to be a problem with AdjustWindowRect(). When I try and process WM_WINDOWPOSCHANGED on Wine the values returned look to be off-by-one and to make it work at all I had to change the code to be as below.
Please file a separate bug for this, and specify the exact window styles you are using.