|
From: Jean-François L. <jfl...@po...> - 2025-08-27 09:18:43
|
On 27/08/2025 10:37, Jo Even Skarstein via Freemint-discuss wrote:
> - Like BubbleGEM, XaAES sends BUBBLEGEM_REQUEST messages to the owner of the window the mouse currently hovers above.
> - BubbleGEM put's it's own (the BubbleGEM "server") in msg[1], XaAES puts the apid of the owner of the window here.
> - appl_find("BUBBLE ") returns apid 4 if no actual "BUBBLE " application is running. However, sending BUBBLEGEM_SHOW messages to this apid does not do anything.
>
> In short, I could not figure out how to get XaAES to actually show a bubble.
Here's how I've been doing it, and it always worked for me. Hope it'll help.
if ((id = appl_find("BUBBLE ")) != -1)
{
msg[0] = BUBBLEGEM_SHOW;
msg[1] = _AESapid;
msg[2] = 0;
msg[3] = xpos;
msg[4] = ypos;
msg[5] = (short)(((int)bubbles->p[idx] >> 16) & 0x0000ffffL);
msg[6] = (short)(( int)bubbles->p[idx] & 0x0000ffffL);
msg[7] = 0;
appl_write(id, 16, msg);
}
Cheers,
JFL
|