[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [MiNT] AES desktop extension
Hello,
I've been thinking about an extension that would allow the desktop
application handle the root window actions by its own like any other
own window (not only having to have the OBJECT tree as a content).
sounds good :)
BTW: another point against the userdef stuff: with most AESes (i don't
know for XaAES), userdraw subroutines are not allowed to call AES
functions (AES is not re-entrant). That may lead the system to crash.
About the proposal:
Let me propose the way the desktop would tell the AES that it is about to
handle the root window by itself:
#define WF_DESKTOP 35
wind_set(0, WF_DESKTOP, 1);
I'd prefer the following:
wind_open(0,dummy,dummy,dummy,dummy);
This will ask the AES to send WM_REDRAW message to window handle 0 instead
of drawing the desktop formular. The window dimensions (dummy) shall not
be taken into account by the AES. That window shall not be topped when a
mouse event occurs on it (WF_BEVENT/BEVENT_WORK feature))
wind_close(0); or wind_set(WF_NEWDESK); shall remove that desktop-window.
Note that there are no wind_create()/wind_delete() call for that
particular window.
Last point: other wind_xxx() functions shall be ready to manage the case
'window_handle == 0' (i think it's already ok).
best regards,
Arnaud.