Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-8165157

[macosx] modal dialog is shown before it is expected

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Unresolved
    • Icon: P4 P4
    • tbd
    • 9
    • client-libs

      In Dialog.conditionalShow() there's the following logic:

      if (modal) {
        ...
        modalShow();
      }
      ...
      peer.setVisible(true);

      Then:

      modalShow() -> blockWindows() -> peer.blockWindows() -> LWWindowPeer.setModalBlocked() -> CPlatformWindow.setModalBlocked() -> checkBlockingAndOrder() ->

              CWrapper.NSWindow.orderFrontRegardless(nsWindowPtr);
              CWrapper.NSWindow.makeKeyAndOrderFront(nsWindowPtr);
              CWrapper.NSWindow.makeMainWindow(nsWindowPtr);

      This actually shows the platform window, before peer.setVisible(true) is called.

      This seems unexpected and is a potential source of issues (like 8160570).

            Unassigned Unassigned
            ant Anton Tarasov (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated: