aboutsummaryrefslogtreecommitdiffstats
path: root/src/classes/com/sun
diff options
context:
space:
mode:
Diffstat (limited to 'src/classes/com/sun')
-rwxr-xr-xsrc/classes/com/sun/javafx/newt/windows/WindowsWindow.java9
1 files changed, 7 insertions, 2 deletions
diff --git a/src/classes/com/sun/javafx/newt/windows/WindowsWindow.java b/src/classes/com/sun/javafx/newt/windows/WindowsWindow.java
index 626f98199..e520b8394 100755
--- a/src/classes/com/sun/javafx/newt/windows/WindowsWindow.java
+++ b/src/classes/com/sun/javafx/newt/windows/WindowsWindow.java
@@ -101,8 +101,13 @@ public class WindowsWindow extends Window {
public boolean setFullscreen(boolean fullscreen) {
if(this.fullscreen!=fullscreen) {
- this.fullscreen=fullscreen;
- return setFullScreen0(windowHandle, fullscreen);
+ boolean res = setFullScreen0(windowHandle, fullscreen);
+ if (fullscreen && res) {
+ this.fullscreen = true;
+ } else {
+ this.fullscreen = false;
+ }
+ return fullscreen;
}
return true;
}