Subject: bug#79400: 30.2; Windows: w32-notification-notify/-close handle frames incorrectly

From: Eli Zaretskii <[email-masked]>
Date: Sun, 07 Sep 2025 16:47:04 +0300

> From: Raffael Stocker <[email-masked]>
> Date: Sun, 07 Sep 2025 14:37:54 +0200
> 
> The problem is that ‘w32-notification-notify’ and
> ‘w32-notification-close’ use ‘SELECTED_FRAME()’ to call the Windows API.
> This is fine for ‘-notify’, but not for ‘-close’, which should instead
> pass the frame used in the corresponding call to ‘-notify’.

What if that frame no longer exists?

> I would suggest changing the ID returned in ‘w32-notification-notify’ to
> a cons cell containing ID and frame.

Why not return an integer that is the handle of the frame's w32 window
instead?

Thanks.