Platform diferences
Martin Fox
martin at martinfox.com
Tue Jun 18 20:42:59 UTC 2024
The alert is being shown without setting its screen or position so it will default to the primary screen regardless of where the main window is. It might make sense for new windows to default to the screen of the active stage to reduce these sorts of surprises. In any case it looks like this decision isn’t being made in the platform code, when creating a new window glass is passed the screen.
On Mac things do get strange if the main window is in fullscreen mode and has taken over a Space (aka virtual desktop). The alert and the main window are both top-level DECORATED windows and can’t share that space. The work-around is to set the alert’s StageStyle to UTILITY before showing it.
> On 6/17/2024 1:52 PM, Andy Goryachev wrote:
> Thank you for clarification.
>
> I guess the only problem I see (and which applies to both mac and linux) is that the alert window appears on the wrong monitor - I would expect it to appear on the same monitor where the main window is positioned.
>
> -andy
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://mail.openjdk.org/pipermail/openjfx-dev/attachments/20240618/2c4fd519/attachment-0001.htm>
More information about the openjfx-dev
mailing list