Platform diferences
Kevin Rushforth
kevin.rushforth at oracle.com
Mon Jun 17 22:02:06 UTC 2024
Positioning of Windows, among other window system interactions, is
inherently platform specific. We added language, primarily in support of
Wayland, to clarify this, but I can easily imagine other windowing
environments where this is also true. We should try for consistency
where possible, but recognize that some things are under control of the
system.
-- Kevin
On 6/17/2024 1:46 PM, Thiago Milczarek Sayão wrote:
> I'm forwarding here since it's unrelated to the specific issue.
>
> The existing behavior on Linux is to center the windows. I think we
> should let the window manager decide and don't touch the initial
> position (unless the user sets it).
>
> On mutter, for example, there's an option to automatically center the
> windows. There's also an option to automatically maximize windows near
> screen size (and we probably break it).
>
> There's also window managers like i3 on which making effort to center
> the windows are pointless since it's a tiling wm.
>
> We should let some platform details be different, I think.
>
> -- Thiago
>
> ---------- Forwarded message ---------
> De: *Andy Goryachev* <notifications at github.com>
> Date: seg., 17 de jun. de 2024 às 16:51
> Subject: Re: [openjdk/jfx] 8332222: Linux Debian: Maximized stage
> shrinks when opening another stage (PR #1460)
> To: openjdk/jfx <jfx at noreply.github.com>
> Cc: Thiago Milczarek Sayão <thiago.sayao at gmail.com>, Mention
> <mention at noreply.github.com>
>
>
> Question. I see different behavior between macOS and linux mint with
> the attached program (unmodified master branch).
>
> On mac, the alert window is always positioned at the upper left
> corner, while on linux it is correctly placed at the center of the
> screen. Is this expected?
>
> Also on mac, as I understand it, there is no "maximized" state, only
> full screen. So when the alert window comes up, the main window slides
> out of view and all we see is the black screen and alert widow at the
> upper left corner.
>
> Unless we move the main window to another monitor. In that case I can
> see a number of differences:
>
> 1. main window in normal state, the alert comes up on a primary
> screen and not on the screen where the main window is located
> 2. when main window is "maximized" to full screen, both screens go
> into full screen mode, one (secondary) with the main window, the
> other (primary) with a black background. an alert pops up on the
> primary screen (i.e. other than the screen with the main window),
> but this time it is correctly positioned at the center of the
> primary screen.
>
> I feel this behavior (on mac) is unexpected. Any ideas?
>
> —
> Reply to this email directly, view it on GitHub
> <https://github.com/openjdk/jfx/pull/1460#issuecomment-2174303188>, or
> unsubscribe
> <https://github.com/notifications/unsubscribe-auth/AHKIFHSSXAPOFA3MMY2ZCO3ZH4427AVCNFSM6AAAAABIENWRK2VHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDCNZUGMYDGMJYHA>.
> You are receiving this because you were mentioned.Message ID:
> <openjdk/jfx/pull/1460/c2174303188 at github.com>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://mail.openjdk.org/pipermail/openjfx-dev/attachments/20240617/4c653c27/attachment-0001.htm>
More information about the openjfx-dev
mailing list