<!DOCTYPE html><html><head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
  </head>
  <body>
    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.<br>
    <br>
    -- Kevin<br>
    <br>
    <div class="moz-cite-prefix">On 6/17/2024 1:46 PM, Thiago Milczarek
      Sayão wrote:<br>
    </div>
    <blockquote type="cite" cite="mid:CAAP_wumU89bAFzfJsU3iBGfGXTZF__L9WWbeHGY=5-36AV4sGw@mail.gmail.com">
      
      <div dir="ltr">
        <div>I'm forwarding here since it's unrelated to the specific
          issue.</div>
        <div><br>
        </div>
        <div>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).</div>
        <div><br>
        </div>
        <div>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).</div>
        <div><br>
        </div>
        <div>There's also window managers like i3 on which making effort
          to center the windows are pointless since it's a tiling wm.</div>
        <div><br>
        </div>
        <div>We should let some platform details be different, I think.</div>
        <div><br>
        </div>
        <div>-- Thiago</div>
        <div><br>
          <div class="gmail_quote">
            <div dir="ltr" class="gmail_attr">---------- Forwarded
              message ---------<br>
              De: <strong class="gmail_sendername" dir="auto">Andy
                Goryachev</strong> <span dir="auto"><<a href="mailto:notifications@github.com" moz-do-not-send="true" class="moz-txt-link-freetext">notifications@github.com</a>></span><br>
              Date: seg., 17 de jun. de 2024 às 16:51<br>
              Subject: Re: [openjdk/jfx] 8332222: Linux Debian:
              Maximized stage shrinks when opening another stage (PR
              #1460)<br>
              To: openjdk/jfx <<a href="mailto:jfx@noreply.github.com" moz-do-not-send="true" class="moz-txt-link-freetext">jfx@noreply.github.com</a>><br>
              Cc: Thiago Milczarek Sayão <<a href="mailto:thiago.sayao@gmail.com" moz-do-not-send="true" class="moz-txt-link-freetext">thiago.sayao@gmail.com</a>>,
              Mention <<a href="mailto:mention@noreply.github.com" moz-do-not-send="true" class="moz-txt-link-freetext">mention@noreply.github.com</a>><br>
            </div>
            <br>
            <br>
            <p dir="auto">Question. I see different behavior between
              macOS and linux mint with the attached program (unmodified
              master branch).</p>
            <p dir="auto">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?</p>
            <p dir="auto">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.</p>
            <p dir="auto">Unless we move the main window to another
              monitor. In that case I can see a number of differences:</p>
            <ol dir="auto">
              <li>main window in normal state, the alert comes up on a
                primary screen and not on the screen where the main
                window is located</li>
              <li>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.</li>
            </ol>
            <p dir="auto">I feel this behavior (on mac) is unexpected.
              Any ideas?</p>
            <p style="font-size:small;color:#666">—<br>
              Reply to this email directly, <a href="https://github.com/openjdk/jfx/pull/1460#issuecomment-2174303188" target="_blank" moz-do-not-send="true">view it on GitHub</a>,
              or <a href="https://github.com/notifications/unsubscribe-auth/AHKIFHSSXAPOFA3MMY2ZCO3ZH4427AVCNFSM6AAAAABIENWRK2VHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDCNZUGMYDGMJYHA" target="_blank" moz-do-not-send="true">unsubscribe</a>.<br>
              You are receiving this because you were mentioned.<img src="https://github.com/notifications/beacon/AHKIFHVJS3P4JWM6RYCJHQDZH4427A5CNFSM6AAAAABIENWRK2WGG33NNVSW45C7OR4XAZNMJFZXG5LFINXW23LFNZ2KUY3PNVWWK3TUL5UWJTUBTE55I.gif" alt="" moz-do-not-send="true" width="1" height="1"><span style="color:transparent;font-size:0;display:none;overflow:hidden;opacity:0;width:0;height:0;max-width:0;max-height:0">Message
                ID: <span><openjdk/jfx/pull/1460/c2174303188</span><span>@</span><span>github</span><span>.</span><span>com></span></span></p>
          </div>
        </div>
      </div>
    </blockquote>
    <br>
  </body>
</html>