winex11.drv: send WM_MOUSEACTIVATE before closing a window (try 3)

Dmitry Timoshkov dmitry at codeweavers.com
Tue Jun 19 02:31:41 CDT 2007


"Lei Zhang" <thestig at google.com> wrote:

> Just curious, what popular WMs do active a window when users click the
> window caption buttons?

I have no idea.

> In the case where the WM does the right thing and activates the
> window. (It looks like fvwm95 is one such WM.)

That's a WM specific behaviour, we can do nothing about it.

> Handle_wm_protocols()
> gets called, with protocol == x11drv_atom(WM_TAKE_FOCUS). This sends a
> WM_MOUSEACTIVATE message, and then the application can return
> MA_*ANDEAT. Now what? Currently handle_wm_protocols() gets called with
> protocol == x11drv_atom(WM_DELETE_WINDOW) next and the application is
> told to close even though it asked not to be.

Next, a window receieves WM_SYSCOMMAND/SC_CLOSE as I already pointed out,
and a wndproc can do whatever it likes: ignore/pass through it.

What real world application are you trying to fix?

-- 
Dmitry.



More information about the wine-devel mailing list