winex11.drv: Post a WM_SYSCOMMAND SC_CLOSE when the Window Manager asks to close a window
wine-devel at kievinfo.com
Tue Jun 15 21:18:20 CDT 2010
On 06/15/2010 05:36 AM, Paul Chitescu wrote:
> winex11.drv: Post a WM_SYSCOMMAND SC_CLOSE when the Window Manager asks to
> close a window
> + GetCursorPos( &pt );
> + PostMessageW( hwnd, WM_SYSCOMMAND, SC_CLOSE, MAKELPARAM( pt.x, pt.y ) );
You can't do that. Cursor can be anywhere, even outside Wine when WM decides
to remove Wine's window. According to MSDN (which means it requires
validation) you can pass either -1 or 0 for lparam here.
Otherwise I think WM_SYSCOMMAN should be the correct behavior.
More information about the wine-devel