[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [MiNT] Bug with the topped windows



Hi Helmut,

It seems that with the recents XAAES builds, a window is already considered as "Topped" before that the WM_TOPPED message is sent to the application.

I mean:
If I receive a WM_TOPPED message and I ask who's the actual topped windows, XAAES returns the window that it wants to top and not the last topped window as before.

I don't know if I'm clear enough :)

You mean after a click?

I mean when an application receives a WM_TOPPED message :)

I give you a sample code that supposedly handles the WM_TOPPED message:

void WinTop(  short win_handle)
{
    short dum, old_topped;

    mt_wind_get( 0, WF_TOP, &old_topped, &dum, &dum, &dum, aes_global);

    if( win_handle == old_topped)
        return;

    do_crazy_things_on_the_old_topped_window( old_topped);

    mt_wind_set( win_handle, WF_TOP, 0, 0, 0, 0, aes_global);
}

With the newest XAAES builds, the application returns always at the first "if".


Did it work before Feb 2?

Yes, it worked.


Please try the next build, I think I don't have a test-case.


Thanks for your support, I will test tomorrow.


A+
Zorro