Owned and Modal Windows should not be minimizable/maximizable

XMLWordPrintable

    • Type: Bug
    • Resolution: Fixed
    • Priority: P3
    • 8u40
    • Affects Version/s: 8u40
    • Component/s: javafx

      as part of RT-38363 it was determined that owned and modal windows should not have min/max decorations.
      This will help meet user expectations, after all minimizing a modal window reveals a unresponsive parent.


      diff --git a/modules/graphics/src/main/java/com/sun/javafx/tk/quantum/WindowStage.java b/modules/graphics/src/main/java/com/sun/javafx/tk/quantum/WindowStage.java
      --- a/modules/graphics/src/main/java/com/sun/javafx/tk/quantum/WindowStage.java
      +++ b/modules/graphics/src/main/java/com/sun/javafx/tk/quantum/WindowStage.java
      @@ -178,6 +178,9 @@
                               case DECORATED:
                                   windowMask |=
                                           Window.TITLED | Window.CLOSABLE | Window.MINIMIZABLE | Window.MAXIMIZABLE;
      + if (ownerWindow != null || modality != Modality.NONE) {
      + windowMask &= ~(Window.MINIMIZABLE | Window.MAXIMIZABLE);
      + }
                                   resizable = true;
                                   break;
                               case UTILITY:

            Assignee:
            David Hill (Inactive)
            Reporter:
            David Hill (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported: