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

WindowEvent.MINIMIZE/MAXIMIZE are artificial

    XMLWordPrintable

    Details

    • Type: Enhancement
    • Status: Resolved
    • Priority: P4
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: fx2.0
    • Component/s: javafx

      Description

      When a Glass window is minimized, maximized or restored to the normal state, Glass generates corresponding WindowEvent: MINIMIZE, MAXIMIZE and RESTORE. The event is dispatched from the native level to Java via Window.notifyResize() method. However, this method handles these 3 event types internally, the only event type forwarded further is RESIZE.

      At the Quantum level, these events are synthesized. Here is an example:

              if (platformWindow.minimize(iconified) == iconified) {
                  if (stageListener != null) {
                      stageListener.changedIconified(iconified);
                  }
              }

      Instead, stageListener.changedIconified() should be called from GlassWindowEventHandler.

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              morris Morris Meyer (Inactive)
              Reporter:
              art Artem Ananiev
              Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved:
                Imported: