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

Application leaves fullscreen when using ALT+TAB

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: P4 P4
    • None
    • None
    • javafx
    • Java 1.6_12 / JavaFX 1.2
      Both windows / linux are affected.

      Hello.

      When a stage is in full screen mode, using ALT+TAB to switch with another application makes the Stage leave fullscreen.
      It is very annoying in particular when trying to copy/paste information.

      Below is a sample script that can be used to reproduce the problem.

      NOTE: it seems that sometimes (~10% of attempts) - for an unknown reason yet - it works and I am able to switch back to the application and it stays fullscreen.


      --------

      package sandbox;

      import javafx.stage.Stage;
      import javafx.scene.Scene;

      import javafx.scene.control.Button;

      var stage: Stage = Stage {
          title: "Application title"
          width: 250
          height: 80
          scene: Scene {
              content: [
                  Button {
                      text: "Switch screen mode"
                      action: function() {
                          stage.fullScreen = not stage.fullScreen ;
                      }

                  }
              ]
          }
      }

            kcr Kevin Rushforth
            duke J. Duke
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported: