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

Owned and Modal Windows should not be minimizable/maximizable

    XMLWordPrintable

    Details

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

      Description

      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:

        Attachments

          Issue Links

            Activity

              People

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

                Dates

                Created:
                Updated:
                Resolved:
                Imported: